svn: /web/php-bugs/trunk/www/js/ userlisting.php
| From: | Felipe Pena | Date: | Sat, 09 Jul 2011 15:57:14 +0000 |
| Subject: | svn: /web/php-bugs/trunk/www/js/ userlisting.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11506@lists.php.net to get a copy of this message | ||
felipe Sat, 09 Jul 2011 15:57:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=313092
Log:
- Add delimiter arg to preg_quote() call
Changed paths:
U web/php-bugs/trunk/www/js/userlisting.php
Modified: web/php-bugs/trunk/www/js/userlisting.php
===================================================================
--- web/php-bugs/trunk/www/js/userlisting.php 2011-07-09 15:34:22 UTC (rev 313091)
+++ web/php-bugs/trunk/www/js/userlisting.php 2011-07-09 15:57:14 UTC (rev 313092)
@@ -62,7 +62,7 @@
$first_name = substr($first_name, 0, strlen($row['username']));
/* Only add the user name in the array if it is not the same as the begin of the real name */
- if (!preg_match('/^'. preg_quote($first_name) .'/i',
$row['username'])) {
+ if (!preg_match('/^'. preg_quote($first_name, '/') .'/i',
$row['username'])) {
$lookup[] = $row['username'];
$user[$row['username']] = $data;
}