From 45a9430818a23f1fa035c738d4085e5e90877bfc Mon Sep 17 00:00:00 2001 From: fidian Date: Tue, 26 Dec 2000 16:55:32 +0000 Subject: [PATCH] Hopefully killing the quotemeta and login problems with funny characters git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@897 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index 5df2e3e9..1bbce301 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -74,7 +74,8 @@ exit; } - fputs ($imap_stream, "a001 LOGIN \"$username\" \"$password\"\r\n"); + fputs ($imap_stream, "a001 LOGIN \"" . quotemeta($username) . + "\" \"" . quotemeta($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