]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Correct Joomla DB auth handling
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 13 Jul 2010 20:42:09 +0000 (22:42 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 13 Jul 2010 20:42:09 +0000 (22:42 +0200)
Found while reading the code. Original clearly could not have worked as
it split the password field using an uninitialized delimiter.

helpers/basic_auth/DB/basic_db_auth.pl.in

index 9a809e1264d513e0822d8764ddf9f229f2b35231..481961bedc8682b1c24f2d1ef2f73e4f5a083f86 100644 (file)
@@ -142,7 +142,7 @@ sub check_password($$)
     if ($isjoomla){
         my $salt;
         my $key2;
-        ($key2,$salt) = split (/$salt/, $key);
+        ($key2,$salt) = plit (/:/, $key);
         return 1 if md5_hex($password.$salt).':'.$salt eq $key;
     }
     else{