Changeset 2021 in subversion


Ignore:
Timestamp:
Oct 29, 2008 8:39:12 AM (5 years ago)
Author:
alec
Message:
  • Fix problem with numeric folder names (#1485527)
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

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

    r2009 r2021  
    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          } 
  • trunk/roundcubemail/program/include/rcube_shared.inc

    r1998 r2021  
    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.