Skip to content

Escape the path in the python-style listing - #212

Open
Mzack9999 wants to merge 1 commit into
devfrom
python-listing-escape
Open

Mzack9999 wants to merge 1 commit into
devfrom
python-listing-escape

Conversation

@Mzack9999

Copy link
Copy Markdown
Member

Closes #211

Proposed changes

  • The python-style (-py) directory listing HTML-escapes the request path before it writes it into the page.
  • -py together with -sandbox now returns an error at startup instead of panicking on the first request.

Proof

New tests TestDirectoryListingEscapesPath and TestPythonStyleWithSandboxIsRejected. Existing tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant