Skip to content

Percent-encode the caret in the path - #394

Merged
lexborisov merged 1 commit into
lexbor:masterfrom
kocsismate:caret-path-encoding
Jul 10, 2026
Merged

lexborisov merged 1 commit into
lexbor:masterfrom
kocsismate:caret-path-encoding

Conversation

@kocsismate

@kocsismate kocsismate commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

The caret (^) is part of the path percent-encode set:

"The path percent-encode set is a percent-encode set consisting of the query percent-encode set and U+003F (?), U+005E (^), U+0060 (`), U+007B ({), and U+007D (})."

Until now, this character wasn't percent-encoded in the path likely due to a copy-paste error. This mistake is fixed by adding LXB_URL_MAP_PATH to the lxb_url_map entry for the caret.

Originally reported at php/php-src#22628

The caret (^) is part of the path percent-encode set:

"The path percent-encode set is a percent-encode set consisting of the query percent-encode set and U+003F (?), U+005E (^), U+0060 (`), U+007B ({), and U+007D (})."

Until now, this character wasn't percent-encoded in the path likely due to a copy-paste error. This is mistake is fixed by adding LXB_URL_MAP_PATH to the lxb_url_map entry for the caret.

Originally reported at php/php-src#22628
@lexborisov
lexborisov merged commit 21c9070 into lexbor:master Jul 10, 2026
1 check passed
@lexborisov

Copy link
Copy Markdown
Member

Hi @kocsismate

Thanks for the patch!

@kocsismate
kocsismate deleted the caret-path-encoding branch July 10, 2026 20:42
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.

2 participants