Hopefully killing the quotemeta and login problems with funny characters
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 26 Dec 2000 16:55:32 +0000 (16:55 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 26 Dec 2000 16:55:32 +0000 (16:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@897 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 5df2e3e9a26cd366677016a6472dbdbd9a1ed268..1bbce301120e3eca55159686bdf6f441400c06b4 100755 (executable)
@@ -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 **/