Changeset 1357 in subversion


Ignore:
Timestamp:
May 5, 2008 8:56:39 AM (5 years ago)
Author:
alec
Message:
  • Fix management of folders with national characters in names (#1485036, #1485001)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r1355 r1357  
    66- Installer: encode special characters in DB username/password (#1485042) 
    77- Do charset conversion also for from/to column on messages list 
     8- Fix management of folders with national characters in names (#1485036, #1485001) 
    89 
    9102008/05/02 (alec) 
  • trunk/roundcubemail/program/steps/settings/manage_folders.inc

    r1344 r1357  
    4747  { 
    4848  if (!empty($_POST['_name'])) 
    49     $create = $IMAP->create_mailbox(trim(get_input_value('_name', RCUBE_INPUT_POST, FALSE, 'UTF-7')), TRUE); 
    50  
     49    { 
     50    $name = trim(get_input_value('_name', RCUBE_INPUT_POST, FALSE, 'UTF-7')); 
     51     // #1485036 (RFC3501, 5.1.3) TODO: it should be done on read not on write 
     52    $name = str_replace('&-', '&', $name); 
     53    $create = $IMAP->create_mailbox($name, TRUE); 
     54    } 
     55   
    5156  if ($create && $OUTPUT->ajax_call) 
    5257    { 
     
    6671  { 
    6772  if (!empty($_POST['_folder_oldname']) && !empty($_POST['_folder_newname'])) 
    68     $rename = $IMAP->rename_mailbox(($oldname = get_input_value('_folder_oldname', RCUBE_INPUT_POST)), trim(get_input_value('_folder_newname', RCUBE_INPUT_POST, FALSE, 'UTF-7'))); 
    69      
     73    { 
     74    $name = trim(get_input_value('_folder_newname', RCUBE_INPUT_POST, FALSE, 'UTF-7')); 
     75     // #1485036 (RFC3501, 5.1.3) TODO: it should be done on read not on write 
     76    $name = str_replace('&-', '&', $name); 
     77    $rename = $IMAP->rename_mailbox(($oldname = get_input_value('_folder_oldname', RCUBE_INPUT_POST)), $name); 
     78    } 
     79 
    7080  if ($rename && $OUTPUT->ajax_call) 
    7181    { 
Note: See TracChangeset for help on using the changeset viewer.