Changeset 5164670 in github
- Timestamp:
- May 27, 2011 9:01:05 AM (2 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- d9641b0
- Parents:
- d7344819
- Files:
-
- 6 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/main.inc (modified) (1 diff)
-
program/steps/addressbook/save.inc (modified) (5 diffs)
-
program/steps/addressbook/search.inc (modified) (1 diff)
-
program/steps/mail/search.inc (modified) (1 diff)
-
program/steps/settings/save_identity.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rd7344819 r5164670 2 2 =========================== 3 3 4 - Fix handling of "<" character in contact data, search fields and folder names (#1487864) 5 - Fix saving "<" character in identity name and organization fields (#1487864) 4 6 - Added option to specify to which address book add new contacts 5 7 - Added plugin hook for keep-alive requests -
program/include/main.inc
r0deec44 r5164670 868 868 // use value from post 869 869 if (isset($_POST[$fname])) { 870 $postvalue = get_input_value($fname, RCUBE_INPUT_POST, 871 $type == 'textarea' && strpos($attrib['class'], 'mce_editor')!==false ? true : false); 870 $postvalue = get_input_value($fname, RCUBE_INPUT_POST, true); 872 871 $value = $attrib['array'] ? $postvalue[intval($colcounts[$col]++)] : $postvalue; 873 872 } -
program/steps/addressbook/save.inc
re848180 r5164670 96 96 } 97 97 98 99 98 // read POST values into hash array 100 99 $a_record = array(); … … 107 106 $values = array(); 108 107 foreach ($colprop['childs'] as $childcol => $cp) { 109 $vals = get_input_value('_'.$childcol, RCUBE_INPUT_POST );108 $vals = get_input_value('_'.$childcol, RCUBE_INPUT_POST, true); 110 109 foreach ((array)$vals as $i => $val) 111 110 $values[$i][$childcol] = $val; … … 118 117 // assign values and subtypes 119 118 else if (is_array($_POST[$fname])) { 120 $values = get_input_value($fname, RCUBE_INPUT_POST );119 $values = get_input_value($fname, RCUBE_INPUT_POST, true); 121 120 $subtypes = get_input_value('_subtype_' . $col, RCUBE_INPUT_POST); 122 121 foreach ($values as $i => $val) { … … 126 125 } 127 126 else if (isset($_POST[$fname])) { 128 $a_record[$col] = get_input_value($fname, RCUBE_INPUT_POST );127 $a_record[$col] = get_input_value($fname, RCUBE_INPUT_POST, true); 129 128 } 130 129 } … … 191 190 192 191 foreach (array('name', 'email') as $col) 193 $a_js_cols[] = (string)$record[$col];192 $a_js_cols[] = Q((string)$record[$col]); 194 193 195 194 // update the changed col in list -
program/steps/addressbook/search.inc
r3e26373 r5164670 23 23 $_SESSION['page'] = 1; 24 24 25 $search = trim(get_input_value('_q', RCUBE_INPUT_GET ));25 $search = trim(get_input_value('_q', RCUBE_INPUT_GET, true)); 26 26 $search_request = md5('addr'.$search); 27 27 -
program/steps/mail/search.inc
r90f81a6 r5164670 28 28 29 29 // get search string 30 $str = get_input_value('_q', RCUBE_INPUT_GET);31 $ filter = get_input_value('_filter', RCUBE_INPUT_GET);32 $ mbox = get_input_value('_mbox', RCUBE_INPUT_GET);30 $str = get_input_value('_q', RCUBE_INPUT_GET, true); 31 $mbox = get_input_value('_mbox', RCUBE_INPUT_GET, true); 32 $filter = get_input_value('_filter', RCUBE_INPUT_GET); 33 33 $headers = get_input_value('_headers', RCUBE_INPUT_GET); 34 34 35 $search_request = md5($mbox.$filter.$str); 35 36 -
program/steps/settings/save_identity.inc
rd80bd15 r5164670 23 23 24 24 $a_save_cols = array('name', 'email', 'organization', 'reply-to', 'bcc', 'standard', 'signature', 'html_signature'); 25 $a_html_cols = array('signature' );25 $a_html_cols = array('signature', 'name', 'organization'); 26 26 $a_boolean_cols = array('standard', 'html_signature'); 27 27 $updated = $default_id = false; … … 29 29 // check input 30 30 if (empty($_POST['_name']) || (empty($_POST['_email']) && IDENTITIES_LEVEL != 1 && IDENTITIES_LEVEL != 3)) 31 {31 { 32 32 $OUTPUT->show_message('formincomplete', 'warning'); 33 33 rcmail_overwrite_action('edit-identity'); 34 34 return; 35 }35 } 36 36 37 37
Note: See TracChangeset
for help on using the changeset viewer.
