Changeset b72e2f9 in github
- Timestamp:
- Nov 12, 2010 8:05:18 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 5d23891
- Parents:
- 74cd6cce
- Files:
-
- 7 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/main.inc (modified) (1 diff)
-
program/steps/mail/copy.inc (modified) (1 diff)
-
program/steps/mail/folders.inc (modified) (3 diffs)
-
program/steps/mail/func.inc (modified) (1 diff)
-
program/steps/mail/move_del.inc (modified) (2 diffs)
-
program/steps/settings/manage_folders.inc (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r310fc2d rb72e2f9 68 68 - Add support for shared folders (#1403507) 69 69 - Fix handling of folders with name "0" (#1487119) 70 - Fix handling of folders with "<>" characters in name 70 71 - jQuery 1.4.4 71 72 -
program/include/main.inc
r4484097 rb72e2f9 540 540 if (!$html_encode_arr) 541 541 { 542 $html_encode_arr = get_html_translation_table(HTML_SPECIALCHARS); 542 $html_encode_arr = get_html_translation_table(HTML_SPECIALCHARS); 543 543 unset($html_encode_arr['?']); 544 544 } -
program/steps/mail/copy.inc
rac2c953 rb72e2f9 27 27 if (!empty($_POST['_uid']) && !empty($_POST['_target_mbox'])) { 28 28 $uids = get_input_value('_uid', RCUBE_INPUT_POST); 29 $target = get_input_value('_target_mbox', RCUBE_INPUT_POST );30 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST );29 $target = get_input_value('_target_mbox', RCUBE_INPUT_POST, true); 30 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true); 31 31 32 32 $copied = $IMAP->copy_message($uids, $target, $mbox); -
program/steps/mail/folders.inc
re019f2d rb72e2f9 23 23 return; 24 24 25 $mbox _name = $IMAP->get_mailbox_name();25 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true); 26 26 27 27 // send EXPUNGE command 28 if ($RCMAIL->action=='expunge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST)))28 if ($RCMAIL->action=='expunge') 29 29 { 30 30 $success = $IMAP->expunge($mbox); 31 31 32 // reload message list if current mailbox 32 // reload message list if current mailbox 33 33 if ($success && !empty($_REQUEST['_reload'])) 34 34 { … … 43 43 44 44 // clear mailbox 45 else if ($RCMAIL->action=='purge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST)))45 else if ($RCMAIL->action=='purge') 46 46 { 47 47 $delimiter = $IMAP->get_hierarchy_delimiter(); 48 48 $trash_regexp = '/^' . preg_quote($CONFIG['trash_mbox'] . $delimiter, '/') . '/'; 49 $junk_regexp = '/^' . preg_quote($CONFIG['junk_mbox'] . $delimiter, '/') . '/'; 49 $junk_regexp = '/^' . preg_quote($CONFIG['junk_mbox'] . $delimiter, '/') . '/'; 50 50 51 51 // we should only be purging trash and junk (or their subfolders) … … 61 61 $OUTPUT->command('message_list.clear'); 62 62 $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text()); 63 $OUTPUT->command('set_unread_count', $mbox _name, 0);63 $OUTPUT->command('set_unread_count', $mbox, 0); 64 64 $OUTPUT->command('set_quota', rcmail_quota_content()); 65 $_SESSION['unseen_count'][$mbox _name] = 0;65 $_SESSION['unseen_count'][$mbox] = 0; 66 66 } 67 67 else -
program/steps/mail/func.inc
r4484097 rb72e2f9 47 47 48 48 // set imap properties and session vars 49 if (strlen(trim($mbox = get_input_value('_mbox', RCUBE_INPUT_GPC ))))49 if (strlen(trim($mbox = get_input_value('_mbox', RCUBE_INPUT_GPC, true)))) 50 50 $IMAP->set_mailbox(($_SESSION['mbox'] = $mbox)); 51 51 else if ($IMAP) -
program/steps/mail/move_del.inc
r4484097 rb72e2f9 31 31 if ($RCMAIL->action=='moveto' && !empty($_POST['_uid']) && strlen($_POST['_target_mbox'])) { 32 32 $count = sizeof(explode(',', ($uids = get_input_value('_uid', RCUBE_INPUT_POST)))); 33 $target = get_input_value('_target_mbox', RCUBE_INPUT_POST );34 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST );33 $target = get_input_value('_target_mbox', RCUBE_INPUT_POST, true); 34 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true); 35 35 36 36 $moved = $IMAP->move_message($uids, $target, $mbox); … … 53 53 else if ($RCMAIL->action=='delete' && !empty($_POST['_uid'])) { 54 54 $count = sizeof(explode(',', ($uids = get_input_value('_uid', RCUBE_INPUT_POST)))); 55 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST );55 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true); 56 56 57 57 $del = $IMAP->delete_message($uids, $mbox); -
program/steps/settings/manage_folders.inc
r4484097 rb72e2f9 28 28 if ($RCMAIL->action=='subscribe') 29 29 { 30 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, false, 'UTF7-IMAP');30 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true, 'UTF7-IMAP'); 31 31 if (strlen($mbox)) 32 32 $IMAP->subscribe(array($mbox)); … … 36 36 else if ($RCMAIL->action=='unsubscribe') 37 37 { 38 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, false, 'UTF7-IMAP');38 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true, 'UTF7-IMAP'); 39 39 if (strlen($mbox)) 40 40 $IMAP->unsubscribe(array($mbox)); … … 44 44 else if ($RCMAIL->action=='enable-threading') 45 45 { 46 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, false, 'UTF7-IMAP');46 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true, 'UTF7-IMAP'); 47 47 if (strlen($mbox)) 48 48 rcube_set_threading($mbox, true); … … 52 52 else if ($RCMAIL->action=='disable-threading') 53 53 { 54 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, false, 'UTF7-IMAP');54 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true, 'UTF7-IMAP'); 55 55 if (strlen($mbox)) 56 56 rcube_set_threading($mbox, false); … … 62 62 if (strlen(trim($_POST['_name']))) 63 63 { 64 $name = trim(get_input_value('_name', RCUBE_INPUT_POST, FALSE, 'UTF7-IMAP'));64 $name = trim(get_input_value('_name', RCUBE_INPUT_POST, true, 'UTF7-IMAP')); 65 65 $create = $IMAP->create_mailbox($name, TRUE); 66 66 } … … 72 72 $index = array_search($create, $folderlist); 73 73 $before = $index !== false && isset($folderlist[$index+1]) ? rcube_charset_convert($folderlist[$index+1], 'UTF7-IMAP') : false; 74 74 75 75 $create = rcube_charset_convert($create, 'UTF7-IMAP'); 76 76 $foldersplit = explode($delimiter, $create); 77 $display_create = str_repeat(' ', substr_count($create, $delimiter)) . $foldersplit[count($foldersplit)-1]; 77 $display_create = str_repeat(' ', substr_count($create, $delimiter)) 78 . Q($foldersplit[count($foldersplit)-1]); 78 79 79 80 $OUTPUT->command('add_folder_row', $create, $display_create, false, $before); … … 90 91 if (strlen(trim($_POST['_folder_oldname'])) && strlen(trim($_POST['_folder_newname']))) 91 92 { 92 $name_utf8 = trim(get_input_value('_folder_newname', RCUBE_INPUT_POST ));93 $oldname_utf8 = get_input_value('_folder_oldname', RCUBE_INPUT_POST );93 $name_utf8 = trim(get_input_value('_folder_newname', RCUBE_INPUT_POST, true)); 94 $oldname_utf8 = get_input_value('_folder_oldname', RCUBE_INPUT_POST, true); 94 95 $name = rcube_charset_convert($name_utf8, RCMAIL_CHARSET, 'UTF7-IMAP'); 95 96 $oldname = rcube_charset_convert($oldname_utf8, RCMAIL_CHARSET, 'UTF7-IMAP'); … … 131 132 $foldersplit = explode($delimiter, $folderlist[$x]); 132 133 $level = count($foldersplit) - 1; 133 $display_rename = str_repeat(' ', $level) 134 . rcube_charset_convert($foldersplit[$level], 'UTF7-IMAP');134 $display_rename = str_repeat(' ', $level) 135 . Q(rcube_charset_convert($foldersplit[$level], 'UTF7-IMAP')); 135 136 136 137 $before = isset($folderlist[$x+1]) ? rcube_charset_convert($folderlist[$x+1], 'UTF7-IMAP') : false; … … 143 144 $foldersplit = explode($delimiter, $rename); 144 145 $level = count($foldersplit) - 1; 145 $display_rename = str_repeat(' ', $level) . rcube_charset_convert($foldersplit[$level], 'UTF7-IMAP');146 $display_rename = str_repeat(' ', $level) . Q(rcube_charset_convert($foldersplit[$level], 'UTF7-IMAP')); 146 147 $index = array_search($rename, $folderlist); 147 148 $before = $index !== false && isset($folderlist[$index+1]) ? rcube_charset_convert($folderlist[$index+1], 'UTF7-IMAP') : false; … … 165 166 $delimiter = $IMAP->get_hierarchy_delimiter(); 166 167 167 $mboxes_utf8 = get_input_value('_mboxes', RCUBE_INPUT_POST );168 $mboxes_utf8 = get_input_value('_mboxes', RCUBE_INPUT_POST, true); 168 169 $mboxes = rcube_charset_convert($mboxes_utf8, RCMAIL_CHARSET, 'UTF7-IMAP'); 169 170 … … 288 289 $protected = ($CONFIG['protect_default_folders'] == true && in_array($folder['id'], $CONFIG['default_imap_folders'])); 289 290 $classes = array($i%2 ? 'even' : 'odd'); 290 $folder_js = JQ($folder['id']);291 $folder_js = Q($folder['id']); 291 292 $display_folder = str_repeat(' ', $folder['level']) . Q($protected ? rcmail_localize_foldername($folder['id']) : $folder['name']); 292 293 $folder_utf8 = rcube_charset_convert($folder['id'], 'UTF7-IMAP'); … … 322 323 } 323 324 324 $a_js_folders['rcmrow'.$idx] = array($folder_utf8, $display_folder, $protected || $folder['virtual']);325 $a_js_folders['rcmrow'.$idx] = array($folder_utf8, Q($display_folder), $protected || $folder['virtual']); 325 326 } 326 327
Note: See TracChangeset
for help on using the changeset viewer.
