caddyhttp: add replacer placeholders for escaped values#7181
Merged
mholt merged 1 commit intocaddyserver:masterfrom Aug 25, 2025
Qusic:escaped
Merged
caddyhttp: add replacer placeholders for escaped values#7181mholt merged 1 commit intocaddyserver:masterfrom Qusic:escaped
mholt merged 1 commit intocaddyserver:masterfrom
Qusic:escaped
Conversation
Member
|
Thanks, I was actually curious though, should we do something like |
Member
|
@mholt I agree for the shortcut, but the long form should probably just be plain English to make sure we don't run into issues with regex character sets not including those special characters etc. |
Member
|
That's a good point. |
mholt
reviewed
Aug 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
basically this brings back this v1 change #470
adding
uri_escaped,path_escaped,query_escapedbeing theurl.QueryEscaped version of original valuesuseful for such cases: https://caddy.community/t/how-to-percent-encode-request-url-when-redirecting/30982