]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ext_sql_session_acl: Fix hex decoding on UID
authorThomas Weber <x@4t2.com>
Fri, 1 Feb 2013 11:04:40 +0000 (04:04 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 1 Feb 2013 11:04:40 +0000 (04:04 -0700)
helpers/external_acl/SQL_session/ext_sql_session_acl.pl.in

index 631aa89d5eca5d1dbd96711a838fcbb8d1b33c2b..240ac7cd96e84a33fc68ee82c095641cff55b858 100755 (executable)
@@ -147,7 +147,7 @@ while (<>) {
 
     $status = "ERR";
     $cid =~ s/%(..)/pack("H*", $1)/ge;
-    $uid =~ s/%(..)/pack("H*", $2)/ge;
+    $uid =~ s/%(..)/pack("H*", $1)/ge;
 
     print(stderr "Received: Channel=".$cid.", UID='".$uid."'\n") if ($debug);