diff options
author | svncommit <devs@roundcube.net> | 2008-05-07 22:16:00 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2008-05-07 22:16:00 +0000 |
commit | 4f9c8337420327802baf73cde7d96b991b1fd1a9 (patch) | |
tree | 4b3e49ee7f75a2f2c544d93a3777570f4ff07659 /program/steps/addressbook/delete.inc | |
parent | 1854c4525bf1fce227a8cc0fa8aad06615df0eae (diff) |
/tmp/out
Diffstat (limited to 'program/steps/addressbook/delete.inc')
-rw-r--r-- | program/steps/addressbook/delete.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/program/steps/addressbook/delete.inc b/program/steps/addressbook/delete.inc index f91b9ac42..df1e4073e 100644 --- a/program/steps/addressbook/delete.inc +++ b/program/steps/addressbook/delete.inc @@ -19,7 +19,10 @@ */ -if (($cid = get_input_value('_cid', RCUBE_INPUT_POST)) && preg_match('/^[0-9]+(,[0-9]+)*$/', $cid)) +if (($cid = get_input_value('_cid', RCUBE_INPUT_POST)) && + (preg_match('/^[0-9]+(,[0-9]+)*$/', $cid) || + preg_match('/^[a-zA-Z0-9=]+(,[a-zA-Z0-9=]+)*$/', $cid)) + ) { $deleted = $CONTACTS->delete($cid); if (!$deleted) |