fixed bug in quotemeta() patch (was applied to the wrong variable) :)
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 12 Dec 2000 00:53:23 +0000 (00:53 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 12 Dec 2000 00:53:23 +0000 (00:53 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@882 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/redirect.php

index 1ee3cb0..d958756 100644 (file)
       do_hook ("login_before");
 
       $onetimepad = OneTimePadCreate(strlen($secretkey));
-      $key = OneTimePadEncrypt(qoutemeta($secretkey), $onetimepad);
+      $key = OneTimePadEncrypt($secretkey, $onetimepad);
       session_register("onetimepad");
       // verify that username and password are correct
-      $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+      $imapConnection = sqimap_login($username, quotemeta($key), $imapServerAddress, $imapPort, 0);
       sqimap_logout($imapConnection);
 
       setcookie("username", $username, 0, $base_uri);