ソースを参照

* quotemeta() wasn't the right function. addslashes() is correct.
* This should fix the bugs Lewis was talking about.

Tyler Akins 24 年 前
コミット
da36de70bf
1 ファイル変更2 行追加2 行削除
  1. 2 2
      functions/imap_general.php

+ 2 - 2
functions/imap_general.php

@@ -128,8 +128,8 @@
          exit;
          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);
       $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 **/