Changeset 3755 in subversion


Ignore:
Timestamp:
Jun 16, 2010 2:29:47 AM (3 years ago)
Author:
alec
Message:
Location:
trunk/roundcubemail/program/steps/addressbook
Files:
3 edited

Legend:

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

    r3697 r3755  
    2828$target_group = get_input_value('_togid', RCUBE_INPUT_POST); 
    2929 
    30 if ($cid && preg_match('/^[a-z0-9\-_=]+(,[a-z0-9\-_=]+)*$/i', $cid) && strlen($target) && $target !== $source) 
     30if ($cid && preg_match('/^[a-zA-Z0-9\+\/=_-]+(,[a-zA-Z0-9\+\/=_-]+)*$/', $cid) && strlen($target) && $target !== $source) 
    3131{ 
    3232  $success = 0; 
  • trunk/roundcubemail/program/steps/addressbook/delete.inc

    r2758 r3755  
    2222if ($OUTPUT->ajax_call && 
    2323    ($cid = get_input_value('_cid', RCUBE_INPUT_POST)) && 
    24     (preg_match('/^[0-9]+(,[0-9]+)*$/', $cid) || 
    25      preg_match('/^[a-zA-Z0-9=]+(,[a-zA-Z0-9=]+)*$/', $cid)) 
    26    ) 
    27   { 
     24    preg_match('/^[a-zA-Z0-9\+\/=_-]+(,[a-zA-Z0-9\+\/=_-]+)*$/', $cid) 
     25) { 
    2826  $plugin = $RCMAIL->plugins->exec_hook('delete_contact', array('id' => $cid, 'source' => get_input_value('_source', RCUBE_INPUT_GPC))); 
    29    
     27 
    3028  $deleted = !$plugin['abort'] ? $CONTACTS->delete($cid) : false; 
    3129  if (!$deleted) 
  • trunk/roundcubemail/program/steps/addressbook/mailto.inc

    r2995 r3755  
    2424$mailto = array(); 
    2525 
    26 if ($cid && preg_match('/^[a-z0-9\-\+\/_=]+(,[a-z0-9\-\+\/_=]+)*$/i', $cid) && $CONTACTS->ready) 
     26if ($cid && preg_match('/^[a-z0-9\+\/=_-]+(,[a-z0-9\+\/=_-]+)*$/i', $cid) && $CONTACTS->ready) 
    2727{ 
    2828  $CONTACTS->set_page(1); 
Note: See TracChangeset for help on using the changeset viewer.