Changeset 4814 in subversion


Ignore:
Timestamp:
May 27, 2011 9:20:46 AM (2 years ago)
Author:
alec
Message:
  • Fix handling of "<" character in group name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/addressbook/groups.inc

    r4552 r4814  
    6969 
    7070else if ($RCMAIL->action == 'group-create') { 
    71   if ($name = trim(get_input_value('_name', RCUBE_INPUT_POST))) { 
     71  if ($name = trim(get_input_value('_name', RCUBE_INPUT_POST, true))) { 
    7272    $plugin = $RCMAIL->plugins->exec_hook('group_create', array('name' => $name, 'source' => $source)); 
    7373 
     
    7979 
    8080  if ($created && $OUTPUT->ajax_call) { 
     81    $created['name'] = Q($created['name']); 
    8182    $OUTPUT->show_message('groupcreated', 'confirmation'); 
    8283    $OUTPUT->command('insert_contact_group', array('source' => $source) + $created); 
     
    8889 
    8990else if ($RCMAIL->action == 'group-rename') { 
    90   if (($gid = get_input_value('_gid', RCUBE_INPUT_POST)) && ($name = trim(get_input_value('_name', RCUBE_INPUT_POST)))) { 
     91  if (($gid = get_input_value('_gid', RCUBE_INPUT_POST)) && ($name = trim(get_input_value('_name', RCUBE_INPUT_POST, true)))) { 
    9192    $plugin = $RCMAIL->plugins->exec_hook('group_rename', array('group_id' => $gid, 'name' => $name, 'source' => $source)); 
    9293 
     
    100101    $OUTPUT->show_message('grouprenamed', 'confirmation'); 
    101102    $OUTPUT->command('update_contact_group', array( 
    102       'source' => $source, 'id' => $gid, 'name' => $newname, 'newid' => $newgid)); 
     103      'source' => $source, 'id' => $gid, 'name' => Q($newname), 'newid' => $newgid)); 
    103104  } 
    104105  else if (!$newname) 
Note: See TracChangeset for help on using the changeset viewer.