浏览代码

Weird locales seem to mess with uppercase i, and php seems to like to
convert function names according to locales... bad php, but not much we can
do. Changed quoteIMAP to quoteimap to work around this for now. It's only
used during login as far as I can find.

jangliss 22 年之前
父节点
当前提交
1910cefb96
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      functions/imap_general.php
  2. 1 1
      functions/strings.php

+ 1 - 1
functions/imap_general.php

@@ -284,7 +284,7 @@ function sqimap_login ($username, $password, $imap_server_address, $imap_port, $
       }
     } elseif ($imap_auth_mech == 'login') {
           // Original IMAP login code
-      $query = 'LOGIN "' . quoteIMAP($username) .  '" "' . quoteIMAP($password) . '"';
+      $query = 'LOGIN "' . quoteimap($username) .  '" "' . quoteimap($password) . '"';
       $read = sqimap_run_command ($imap_stream, $query, false, $response, $message);
     } elseif ($imap_auth_mech == 'plain') {
                 /* Replace this with SASL PLAIN if it ever gets implemented */

+ 1 - 1
functions/strings.php

@@ -406,7 +406,7 @@ function GenerateRandomString($size, $chars, $flags = 0) {
     return $String;
 }
 
-function quoteIMAP($str) {
+function quoteimap($str) {
     return ereg_replace('(["\\])', '\\\\1', $str);
 }