[Svn] r4839 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Fri Jun 3 15:31:55 CEST 2011


Author: alec
Date: 2011-06-03 08:31:55 -0500 (Fri, 03 Jun 2011)
New Revision: 4839

Modified:
   trunk/roundcubemail/program/include/rcube_contacts.php
Log:
- Fix regexp matching field names


Modified: trunk/roundcubemail/program/include/rcube_contacts.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_contacts.php	2011-06-03 13:02:30 UTC (rev 4838)
+++ trunk/roundcubemail/program/include/rcube_contacts.php	2011-06-03 13:31:55 UTC (rev 4839)
@@ -306,7 +306,7 @@
         if (!empty($post_search)) {
             $ids = array(0);
             // build key name regexp
-            $regexp = '/^(' . implode(array_keys($post_search), '|') . ')(:.*?)$/';
+            $regexp = '/^(' . implode(array_keys($post_search), '|') . ')(?:.*)$/';
             // use initial WHERE clause, to limit records number if possible
             if (!empty($where))
                 $this->set_search_set($where);

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list