Przeglądaj źródła

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 lat temu
rodzic
commit
1910cefb96
2 zmienionych plików z 2 dodań i 2 usunięć
  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);
 }