Changeset 5164670 in github


Ignore:
Timestamp:
May 27, 2011 9:01:05 AM (2 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
d9641b0
Parents:
d7344819
Message:
  • Fix handling of "<" character in contact data, search fields and folder names, identity name and organization fields (#1487864)
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rd7344819 r5164670  
    22=========================== 
    33 
     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) 
    46- Added option to specify to which address book add new contacts 
    57- Added plugin hook for keep-alive requests 
  • program/include/main.inc

    r0deec44 r5164670  
    868868  // use value from post 
    869869  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); 
    872871    $value = $attrib['array'] ? $postvalue[intval($colcounts[$col]++)] : $postvalue; 
    873872  } 
  • program/steps/addressbook/save.inc

    re848180 r5164670  
    9696} 
    9797 
    98  
    9998// read POST values into hash array 
    10099$a_record = array(); 
     
    107106    $values = array(); 
    108107    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); 
    110109      foreach ((array)$vals as $i => $val) 
    111110        $values[$i][$childcol] = $val; 
     
    118117  // assign values and subtypes 
    119118  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); 
    121120    $subtypes = get_input_value('_subtype_' . $col, RCUBE_INPUT_POST); 
    122121    foreach ($values as $i => $val) { 
     
    126125  } 
    127126  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); 
    129128  } 
    130129} 
     
    191190 
    192191    foreach (array('name', 'email') as $col) 
    193       $a_js_cols[] = (string)$record[$col]; 
     192      $a_js_cols[] = Q((string)$record[$col]); 
    194193 
    195194    // update the changed col in list 
  • program/steps/addressbook/search.inc

    r3e26373 r5164670  
    2323$_SESSION['page'] = 1; 
    2424 
    25 $search = trim(get_input_value('_q', RCUBE_INPUT_GET)); 
     25$search = trim(get_input_value('_q', RCUBE_INPUT_GET, true)); 
    2626$search_request = md5('addr'.$search); 
    2727 
  • program/steps/mail/search.inc

    r90f81a6 r5164670  
    2828 
    2929// 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); 
    3333$headers = get_input_value('_headers', RCUBE_INPUT_GET); 
     34 
    3435$search_request = md5($mbox.$filter.$str); 
    3536 
  • program/steps/settings/save_identity.inc

    rd80bd15 r5164670  
    2323 
    2424$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'); 
    2626$a_boolean_cols = array('standard', 'html_signature'); 
    2727$updated = $default_id = false; 
     
    2929// check input 
    3030if (empty($_POST['_name']) || (empty($_POST['_email']) && IDENTITIES_LEVEL != 1 && IDENTITIES_LEVEL != 3)) 
    31   { 
     31{ 
    3232  $OUTPUT->show_message('formincomplete', 'warning'); 
    3333  rcmail_overwrite_action('edit-identity'); 
    3434  return; 
    35   } 
     35} 
    3636 
    3737 
Note: See TracChangeset for help on using the changeset viewer.