浏览代码

fixed bug in quotemeta() patch (was applied to the wrong variable) :)

Luke Ehresman 24 年之前
父节点
当前提交
e415f86c85
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/redirect.php

+ 2 - 2
src/redirect.php

@@ -54,10 +54,10 @@
       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);