Skip to content

Rectify a bug causing mangled special characters in URL path segments#3317

Closed
nnposter wants to merge 1 commit intonmap:masterfrom
nnposter:url-protect-segment
Closed

Rectify a bug causing mangled special characters in URL path segments#3317
nnposter wants to merge 1 commit intonmap:masterfrom
nnposter:url-protect-segment

Conversation

@nnposter
Copy link
Copy Markdown

@nnposter nnposter commented Mar 9, 2026

Local function protect_segment in url.lua is mangling certain special characters that do not require URL encoding, replacing them with the digit 1. As an example, path segment sam+ple gets transformed to sam1ple.

This patch rectifies the bug, removes superfluous code, and adds a corresponding unit test. It will be merged in after April 1st unless concerns are raised.

@nnposter nnposter self-assigned this Mar 9, 2026
@nmap-bot nmap-bot closed this in e9a540a Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant