From 8c42b963085c3cabbbf93d074cdc978d0652de40 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Tue, 12 Dec 2000 00:53:23 +0000 Subject: [PATCH] fixed bug in quotemeta() patch (was applied to the wrong variable) :) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@882 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/redirect.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redirect.php b/src/redirect.php index 1ee3cb02..d958756f 100644 --- a/src/redirect.php +++ b/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); -- 2.25.1