Corrected regexp for numeric _to parameter

release-0.6
thomascube 19 years ago
parent 30a75147a0
commit 4fd971598d

@ -98,7 +98,7 @@ function rcmail_compose_headers($attrib)
$header = 'to';
// we have contact id's as get parameters
if (!empty($_GET['_to']) && preg_match('/^([0-9]+,?)+$/', $_GET['_to']))
if (!empty($_GET['_to']) && preg_match('/^[0-9]+(,[0-9]+)*$/', $_GET['_to']))
{
$a_recipients = array();
$sql_result = $DB->query("SELECT name, email

Loading…
Cancel
Save