From 84c71593b64036695c8677c45a6be61920b5124e Mon Sep 17 00:00:00 2001 From: fidian Date: Wed, 7 Feb 2001 14:37:51 +0000 Subject: [PATCH] * quotemeta() wasn't the right function. addslashes() is correct. * This should fix the bugs Lewis was talking about. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1070 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index d7008e75..830efaa8 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -128,8 +128,8 @@ exit; } - fputs ($imap_stream, "a001 LOGIN \"" . quotemeta($username) . - '" "' . quotemeta($password) . "\"\r\n"); + fputs ($imap_stream, "a001 LOGIN \"" . addslashes($username) . + '" "' . addslashes($password) . "\"\r\n"); $read = sqimap_read_data ($imap_stream, 'a001', false, $response, $message); /** If the connection was not successful, lets see why **/ -- 2.25.1