| 1 | --- roundcubemail/program/steps/settings/manage_folders.inc 2008-04-30 08:21:42.000000000 +0500 |
|---|
| 2 | +++ manage_folders.inc 2008-05-05 12:35:30.000000000 +0500 |
|---|
| 3 | @@ -46,7 +46,12 @@ |
|---|
| 4 | else if ($RCMAIL->action=='create-folder') |
|---|
| 5 | { |
|---|
| 6 | if (!empty($_POST['_name'])) |
|---|
| 7 | - $create = $IMAP->create_mailbox(trim(get_input_value('_name', RCUBE_INPUT_POST, FALSE, 'UTF-7')), TRUE); |
|---|
| 8 | + { |
|---|
| 9 | + $path = trim(get_input_value('_name', RCUBE_INPUT_POST, FALSE, 'UTF-7')); |
|---|
| 10 | + $path = str_replace("&-","&",$path); |
|---|
| 11 | + $create = $IMAP->create_mailbox($path, TRUE); |
|---|
| 12 | + } |
|---|
| 13 | +// $create = $IMAP->create_mailbox(trim(get_input_value('_name', RCUBE_INPUT_POST, FALSE, 'UTF-7')), TRUE); |
|---|
| 14 | |
|---|
| 15 | if ($create && $OUTPUT->ajax_call) |
|---|
| 16 | { |
|---|
| 17 | @@ -65,7 +70,12 @@ |
|---|
| 18 | else if ($RCMAIL->action=='rename-folder') |
|---|
| 19 | { |
|---|
| 20 | if (!empty($_POST['_folder_oldname']) && !empty($_POST['_folder_newname'])) |
|---|
| 21 | - $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'))); |
|---|
| 22 | + { |
|---|
| 23 | + $path = trim(get_input_value('_folder_newname', RCUBE_INPUT_POST, FALSE, 'UTF-7')); |
|---|
| 24 | + $path = str_replace("&-","&",$path); |
|---|
| 25 | + $rename = $IMAP->rename_mailbox(($oldname = get_input_value('_folder_oldname', RCUBE_INPUT_POST)), $path); |
|---|
| 26 | + } |
|---|
| 27 | +// $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')); |
|---|
| 28 | |
|---|
| 29 | if ($rename && $OUTPUT->ajax_call) |
|---|
| 30 | { |
|---|