]> git.joonet.de Git - adminer.git/commitdiff
Fix permanent login
authorJakub Vrana <jakub@vrana.cz>
Fri, 6 Aug 2010 14:03:00 +0000 (16:03 +0200)
committerJakub Vrana <jakub@vrana.cz>
Fri, 6 Aug 2010 14:03:00 +0000 (16:03 +0200)
adminer/include/auth.inc.php

index 43382f339186b6c343d144712d1307c6bb8ed6e1..4e1352d39363c57da66bdb999e87aee0f5fe5850 100644 (file)
@@ -58,7 +58,7 @@ if (isset($_POST["server"])) {
        foreach ($permanent as $key => $val) {
                list(, $cipher) = explode(":", $val);
                list($driver, $server, $username) = array_map('base64_decode', explode("-", $key));
-               $_SESSION["passwords"][$driver][$server][$username] = decrypt_string($cipher, $private);
+               $_SESSION["passwords"][$driver][$server][$username] = decrypt_string(base64_decode($cipher), $private);
        }
 }