summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/addressbook
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-12-22 21:45:21 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-12-22 21:45:21 +0000
commitfbf02ab360cbe003b9b90efb878969d82a3fc240 (patch)
tree3304274f10ad0fda2b49a307b38d1cd755ac94bc /roundcubemail/program/steps/addressbook
parent55491988926ec76a2a31914c3eb766790ca82b06 (diff)
Applied security patches by Kees Cook (Ubuntu) + little visual enhancements
git-svn-id: https://svn.roundcube.net/trunk@425 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook')
-rw-r--r--roundcubemail/program/steps/addressbook/delete.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/addressbook/delete.inc b/roundcubemail/program/steps/addressbook/delete.inc
index b95988d12..3e33cd864 100644
--- a/roundcubemail/program/steps/addressbook/delete.inc
+++ b/roundcubemail/program/steps/addressbook/delete.inc
@@ -21,7 +21,7 @@
$REMOTE_REQUEST = TRUE;
-if ($_GET['_cid'])
+if ($_GET['_cid'] && preg_match('/^[0-9]+(,[0-9]+)*$/',$_GET['_cid']))
{
$DB->query("UPDATE ".get_table_name('contacts')."
SET del=1
@@ -96,4 +96,4 @@ if ($_GET['_cid'])
}
exit;
-?> \ No newline at end of file
+?>