Changeset b3ce791 in github
- Timestamp:
- Feb 16, 2007 2:35:03 PM (6 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 191667e
- Parents:
- 1012ea3
- Location:
- program
- Files:
-
- 9 edited
-
include/main.inc (modified) (1 diff)
-
steps/mail/folders.inc (modified) (2 diffs)
-
steps/mail/func.inc (modified) (3 diffs)
-
steps/mail/list.inc (modified) (1 diff)
-
steps/mail/mark.inc (modified) (1 diff)
-
steps/mail/move_del.inc (modified) (4 diffs)
-
steps/mail/show.inc (modified) (1 diff)
-
steps/settings/delete_identity.inc (modified) (1 diff)
-
steps/settings/manage_folders.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/main.inc
r18e2a3ef rb3ce791 1690 1690 { 1691 1691 $attrib = array(); 1692 preg_match_all('/\s*([-_a-z]+)= ["]([^"]+)["]?/i', stripslashes($str), $regs, PREG_SET_ORDER);1692 preg_match_all('/\s*([-_a-z]+)=(["\'])([^"]+)\2/Ui', stripslashes($str), $regs, PREG_SET_ORDER); 1693 1693 1694 1694 // convert attributes to an associative array (name => value) 1695 1695 if ($regs) 1696 1696 foreach ($regs as $attr) 1697 $attrib[strtolower($attr[1])] = $attr[ 2];1697 $attrib[strtolower($attr[1])] = $attr[3]; 1698 1698 1699 1699 return $attrib; -
program/steps/mail/folders.inc
rd64c2e4 rb3ce791 26 26 if ($_action=='expunge') 27 27 { 28 $success = $IMAP->expunge( $_GET['_mbox']);28 $success = $IMAP->expunge(get_input_value('_mbox', RCUBE_INPUT_GET)); 29 29 30 30 // reload message list if current mailbox 31 if ($success && $_GET['_reload'])31 if ($success && !empty($_GET['_reload'])) 32 32 { 33 33 rcube_remote_response('this.message_list.clear();', TRUE); … … 42 42 else if ($_action=='purge') 43 43 { 44 $success = $IMAP->clear_mailbox( $_GET['_mbox']);44 $success = $IMAP->clear_mailbox(get_input_value('_mbox', RCUBE_INPUT_GET)); 45 45 46 if ($success && $_GET['_reload'])46 if ($success && !empty($_GET['_reload'])) 47 47 { 48 48 $commands = "this.message_list.clear();\n"; -
program/steps/mail/func.inc
r1012ea3 rb3ce791 31 31 32 32 // set imap properties and session vars 33 if ( strlen($mbox = get_input_value('_mbox', RCUBE_INPUT_GET)))33 if ($mbox = get_input_value('_mbox', RCUBE_INPUT_GPC)) 34 34 { 35 35 $IMAP->set_mailbox($mbox); … … 37 37 } 38 38 39 if ( strlen($_GET['_page']))40 { 41 $IMAP->set_page( $_GET['_page']);42 $_SESSION['page'] = $_GET['_page'];39 if (!empty($_GET['_page'])) 40 { 41 $IMAP->set_page((int)$_GET['_page']); 42 $_SESSION['page'] = (int)$_GET['_page']; 43 43 } 44 44 … … 60 60 // define url for getting message parts 61 61 if (strlen($_GET['_uid'])) 62 $GET_URL = sprintf('%s&_action=get&_mbox=%s&_uid=%d', $COMM_PATH, $IMAP->get_mailbox_name(), $_GET['_uid']);62 $GET_URL = sprintf('%s&_action=get&_mbox=%s&_uid=%d', $COMM_PATH, $IMAP->get_mailbox_name(), get_input_value('_uid', RCUBE_INPUT_GET)); 63 63 64 64 -
program/steps/mail/list.inc
r04c6180 rb3ce791 23 23 $OUTPUT_TYPE = 'js'; 24 24 25 $sort = isset($_GET['_sort']) ? $_GET['_sort'] : false;26 27 25 // is there a sort type for this request? 28 if ($sort )26 if ($sort = get_input_value('_sort', RCUBE_INPUT_GET)) 29 27 { 30 28 // yes, so set the sort vars -
program/steps/mail/mark.inc
rc5ac073 rb3ce791 26 26 'unread' => 'UNSEEN'); 27 27 28 if ( $_GET['_uid'] && $_GET['_flag'])28 if (($uids = get_input_value('_uid', RCUBE_INPUT_GET)) && ($flag = get_input_value('_flag', RCUBE_INPUT_GET))) 29 29 { 30 $flag = $a_flags_map[$ _GET['_flag']] ? $a_flags_map[$_GET['_flag']] : strtoupper($_GET['_flag']);31 $marked = $IMAP->set_flag($ _GET['_uid'], $flag);30 $flag = $a_flags_map[$flag] ? $a_flags_map[$flag] : strtoupper($flag); 31 $marked = $IMAP->set_flag($uids, $flag); 32 32 if ($marked != -1) 33 33 { -
program/steps/mail/move_del.inc
r04c6180 rb3ce791 23 23 24 24 // move messages 25 if ($_action=='moveto' && $_GET['_uid'] && $_GET['_target_mbox'])25 if ($_action=='moveto' && !empty($_GET['_uid']) && !empty($_GET['_target_mbox'])) 26 26 { 27 $count = sizeof(explode(',', $_GET['_uid'])); 28 $moved = $IMAP->move_message($_GET['_uid'], $_GET['_target_mbox'], $_GET['_mbox']); 27 $count = sizeof(explode(',', ($uids = get_input_value('_uid', RCUBE_INPUT_GET)))); 28 $target = get_input_value('_target_mbox', RCUBE_INPUT_GET); 29 $moved = $IMAP->move_message($uids, $target, get_input_value('_mbox', RCUBE_INPUT_GET)); 29 30 30 31 if (!$moved) … … 39 40 40 41 // delete messages 41 else if ($_action=='delete' && $_GET['_uid'])42 else if ($_action=='delete' && !empty($_GET['_uid'])) 42 43 { 43 $count = sizeof(explode(',', $_GET['_uid']));44 $del = $IMAP->delete_message($ _GET['_uid'], $_GET['_mbox']);44 $count = sizeof(explode(',', ($uids = get_input_value('_uid', RCUBE_INPUT_GET)))); 45 $del = $IMAP->delete_message($uids, get_input_value('_mbox', RCUBE_INPUT_GET)); 45 46 46 47 if (!$del) … … 61 62 62 63 // refresh saved seach set after moving some messages 63 if (($search_request = $_GET['_search']) && $IMAP->search_set)64 if (($search_request = get_input_value('_search', RCUBE_INPUT_GPC)) && $IMAP->search_set) 64 65 $_SESSION['search'][$search_request] = $IMAP->refresh_search(); 65 66 … … 76 77 $commands .= sprintf("this.set_unread_count('%s', %d);\n", $mbox, $IMAP->messagecount($mbox, 'UNSEEN')); 77 78 78 if ($_action=='moveto' )79 $commands .= sprintf("this.set_unread_count('%s', %d);\n", $ _GET['_target_mbox'], $IMAP->messagecount($_GET['_target_mbox'], 'UNSEEN'));79 if ($_action=='moveto' && $target) 80 $commands .= sprintf("this.set_unread_count('%s', %d);\n", $target, $IMAP->messagecount($target, 'UNSEEN')); 80 81 81 82 $commands .= sprintf("this.set_quota('%s');\n", $IMAP->get_quota()); -
program/steps/mail/show.inc
r97c8d33 rb3ce791 65 65 // mark message as read 66 66 if (!$MESSAGE['headers']->seen && $_action != 'preview') 67 $IMAP->set_flag($ _GET['_uid'], 'SEEN');67 $IMAP->set_flag($MESSAGE['UID'], 'SEEN'); 68 68 69 69 // give message uid to the client -
program/steps/settings/delete_identity.inc
ree883ad rb3ce791 20 20 */ 21 21 22 $REMOTE_REQUEST = $_GET['_remote'] ? TRUE : FALSE; 23 24 if ($_GET['_iid'] && preg_match('/^[0-9]+(,[0-9]+)*$/',$_GET['_iid'])) 22 if (($ids = get_input_value('_iid', RCUBE_INPUT_GET)) && preg_match('/^[0-9]+(,[0-9]+)*$/', $ids)) 25 23 { 26 24 $DB->query("UPDATE ".get_table_name('identities')." 27 25 SET del=1 28 26 WHERE user_id=? 29 AND identity_id IN (".$ _GET['_iid'].")",27 AND identity_id IN (".$ids.")", 30 28 $_SESSION['user_id']); 31 29 -
program/steps/settings/manage_folders.inc
r2bca6e1 rb3ce791 27 27 if ($_action=='subscribe') 28 28 { 29 if ( strlen($_GET['_mboxes']))30 $IMAP->subscribe(array($ _GET['_mboxes']));29 if ($mboxes = get_input_value('_mboxes', RCUBE_INPUT_GET)) 30 $IMAP->subscribe(array($mboxes)); 31 31 32 32 if ($REMOTE_REQUEST) … … 37 37 else if ($_action=='unsubscribe') 38 38 { 39 if ( strlen($_GET['_mboxes']))40 $IMAP->unsubscribe(array($ _GET['_mboxes']));39 if ($mboxes = get_input_value('_mboxes', RCUBE_INPUT_GET)) 40 $IMAP->unsubscribe(array($mboxes)); 41 41 42 42 if ($REMOTE_REQUEST) … … 96 96 else if ($_action=='delete-folder') 97 97 { 98 if ( !empty($_GET['_mboxes']))99 $deleted = $IMAP->delete_mailbox(array( get_input_value('_mboxes', RCUBE_INPUT_GET)));98 if (get_input_value('_mboxes', RCUBE_INPUT_GET)) 99 $deleted = $IMAP->delete_mailbox(array($mboxes)); 100 100 101 101 if ($REMOTE_REQUEST && $deleted)
Note: See TracChangeset
for help on using the changeset viewer.
