- added patch from srakhada that uses quotemeta() function around password to allow
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Dec 2000 15:23:27 +0000 (15:23 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Dec 2000 15:23:27 +0000 (15:23 +0000)
special characters in password.
- added patch from dave_michmerhuizen@yahoo.com to do folder sorting with case insensativity

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@870 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
functions/imap_mailbox.php
src/webmail.php

index bf1edfb..3387a8e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 Version 1.0pre1 -- DEVELOPMENT
 ------------------------------
+- Folder sorting now case insensative
 - added config option to set IMAP folder delimiter rather than always detecting it
 - Made session cookie parameter use PHP's settings rather than making assumptions
 - Select/Deslect all implemented using only HTML (not Javascript)
index 48bd446..0d966cd 100755 (executable)
       }
       return $boxes;
    }
+
+       /* patch from dave_michmerhuizen@yahoo.com
+        * allows case insensativity when sorting folders
+        */
+       function _icmp ($a, $b) {
+               return strcasecmp($a, $b);
+       }
    
    /******************************************************************************
     **  Returns sorted mailbox lists in several different ways.
       }
       $sorted_lsub_ary = $new_ary;
       if (isset($sorted_lsub_ary)) {
-         sort($sorted_lsub_ary);
+                       usort($sorted_lsub_ary, "_icmp");
+         //sort($sorted_lsub_ary);
       }   
 
       /** LIST array **/
index 89811e0..bb6df91 100644 (file)
@@ -54,7 +54,7 @@
       do_hook ("login_before");
 
       $onetimepad = OneTimePadCreate(strlen($secretkey));
-      $key = OneTimePadEncrypt($secretkey, $onetimepad);
+      $key = OneTimePadEncrypt(quotemeta($secretkey), $onetimepad);
       session_register("onetimepad");
       // verify that username and password are correct
       $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);