summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-04-04 21:38:49 +0000
committerthomascube <thomas@roundcube.net>2006-04-04 21:38:49 +0000
commit4fd971598d54814da5567f977aab1fe14c832c2d (patch)
treed4f3c2efb88d64b85975cf93afbaf25ea7c2025d /program/steps/mail
parent30a75147a0db305da7fe9970a800490c71f4ad35 (diff)
Corrected regexp for numeric _to parameter
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/compose.inc2
1 files changed, 1 insertions, 1 deletions
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