]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 12 Oct 2023 12:55:26 +0000 (01:55 +1300)
commit7de01969a793b2fdb476e354a9fcda272d400d27
treee9ae1e4a3cd28a72fd72943e7135e55cce328461
parentd189b5a5a5e705a16b2d12e4e37f96f647c0d74f
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