Changeset 8498dce in github


Ignore:
Timestamp:
Oct 29, 2008 8:39:12 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
60f9a56
Parents:
fee8c6c
Message:
  • Fix problem with numeric folder names (#1485527)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r2855518 r8498dce  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42008/10/29 (alec) 
     5---------- 
     6- Fix problem with numeric folder names (#1485527) 
    37 
    482008/10/27 (alec) 
  • program/include/rcube_imap.php

    rc9ca6ad r8498dce  
    26702670    // subfolders of default folders to their place... 
    26712671    // ...also do this for the rest of folders because 
    2672     // asort() is not properly sorting case sensitive names      
     2672    // asort() is not properly sorting case sensitive names 
     2673 
     2674    // set the type of folder name variable (#1485527)  
    26732675    while (list($key, $folder) = each($folders)) { 
    2674       $a_out[] = $folder; 
     2676      $a_out[] = (string) $folder; 
    26752677      unset($folders[$key]); 
    26762678      foreach ($folders as $idx => $f) { 
    26772679        if (strpos($f, $folder.$delimiter) === 0) { 
    2678           $a_out[] = $f; 
     2680          $a_out[] = (string) $f; 
    26792681          unset($folders[$idx]); 
    26802682          } 
  • program/include/rcube_shared.inc

    rb58f118 r8498dce  
    180180    } 
    181181  } 
    182   else if (is_numeric($var) && strval(intval($var)) === strval($var)) 
     182  else if (!is_string($var) && strval(intval($var)) === strval($var)) 
    183183    return $var; 
    184184  else if (is_bool($var)) 
Note: See TracChangeset for help on using the changeset viewer.