]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix userinfo percent-encoding (#1367)
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 25 May 2023 02:10:28 +0000 (02:10 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 27 May 2023 02:18:58 +0000 (02:18 +0000)
commit65d21317e0318d9549b560f62eb06be39edee774
tree2fde0c2ec2991b97650be6adce00c6d208e986d3
parentb7fe9e6f5991f29b10ac74bf944d6d6db66bfa3d
Fix userinfo percent-encoding (#1367)

%X expects an unsigned int, and that is what we were giving it. However,
to get to the correct unsigned int value from a (signed) char, one has
to cast to an unsigned char (or equivalent) first.

Broken since inception in commit 7b75100.

Also adjusted similar (commented out) ext_edirectory_userip_acl code.
src/acl/external/eDirectory_userip/ext_edirectory_userip_acl.cc
src/anyp/Uri.cc