Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
1910cefb96
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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') {
     } elseif ($imap_auth_mech == 'login') {
           // Original IMAP login code
           // 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);
       $read = sqimap_run_command ($imap_stream, $query, false, $response, $message);
     } elseif ($imap_auth_mech == 'plain') {
     } elseif ($imap_auth_mech == 'plain') {
                 /* Replace this with SASL PLAIN if it ever gets implemented */
                 /* 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;
     return $String;
 }
 }
 
 
-function quoteIMAP($str) {
+function quoteimap($str) {
     return ereg_replace('(["\\])', '\\\\1', $str);
     return ereg_replace('(["\\])', '\\\\1', $str);
 }
 }