⚡ Sangsakala Proxy 🏠 Home
Skip to content

Python-style listing does not escape the request path, and -py with -sandbox panics #211

Open

Description

@Mzack9999

simplehttpserver version:

dev

Current Behavior:

  • With -py, the directory listing writes the request path into the HTML page without escaping, so characters such as < and " in the path change the page.
  • Running with -py and -sandbox together panics on the first request.

Expected Behavior:

  • The path is HTML-escaped in the listing.
  • -py with -sandbox returns a clear error at startup.

Steps To Reproduce:

  1. Run simplehttpserver -py and open a directory URL with special characters in the path.
  2. Run simplehttpserver -py -sandbox and send any request.

Anything else:

Activity

  1. added
    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions