Skip to content

Do not escape malformed URI twice when sending ICP errors (#2374)#2375

Open
squidadm wants to merge 1 commit intosquid-cache:v7from
squidadm:v7-backport-pr2374
Open

Do not escape malformed URI twice when sending ICP errors (#2374)#2375
squidadm wants to merge 1 commit intosquid-cache:v7from
squidadm:v7-backport-pr2374

Conversation

@squidadm
Copy link
Collaborator

In this context, escaping escaped URI always produces incorrect URI
because % character in the escaped URI gets escaped again. Feeding the
result of the first rfc1738_escape() call to the second call is also
dangerously wrong because the result of the first call gets invalidated
during the second call.

No other cases of such "chained" rfc1738_escape() calls were found.

Broken since 2002 commit e6ccf24.

…e#2374)

In this context, escaping escaped URI always produces incorrect URI
because `%` character in the escaped URI gets escaped again. Feeding the
result of the first rfc1738_escape() call to the second call is also
dangerously wrong because the result of the first call gets invalidated
during the second call.

No other cases of such "chained" rfc1738_escape() calls were found.

Broken since 2002 commit e6ccf24.
@squid-anubis squid-anubis added the M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels label Feb 11, 2026
@squid-anubis
Copy link
Collaborator

Cannot create a git commit message from PR title and description.

Error while parsing future commit message title: the line is too long 73>72

Problematic parser input:

Do not escape malformed URI twice when sending ICP errors (#2374) (#2375)

Please see PR title and description formatting requirements for more details.

This message was added by Anubis bot. Anubis will add a new message if the error text changes. Anubis will remove M-failed-description label when there are no corresponding failures to report.

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

Labels

M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants