Browse Source

Hopefully killing the quotemeta and login problems with funny characters

Tyler Akins 24 years ago
parent
commit
c322ac4a25
1 changed files with 2 additions and 1 deletions
  1. 2 1
      functions/imap_general.php

+ 2 - 1
functions/imap_general.php

@@ -74,7 +74,8 @@
          exit;
          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);
       $read = sqimap_read_data ($imap_stream, "a001", false, $response, $message);
 
 
       /** If the connection was not successful, lets see why **/
       /** If the connection was not successful, lets see why **/