thomascube
2006-04-04 4fd971598d54814da5567f977aab1fe14c832c2d
Corrected regexp for numeric _to parameter


1 files modified
2 ■■■ changed files
program/steps/mail/compose.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/compose.inc
@@ -98,7 +98,7 @@
      $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