From 4fd971598d54814da5567f977aab1fe14c832c2d Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 4 Apr 2006 21:38:49 +0000 Subject: Corrected regexp for numeric _to parameter --- program/steps/mail/compose.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps/mail') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 8a41bdea3..b616f0758 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -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 -- cgit v1.2.3