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

index 62de1de3246488a4f9119c0964b4229e4ef028e2..d95460e9051efd85ed6d349f373ac3eb77d1cf7b 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);