From 39c37afb6a2f9b64e587e283d8d59d6f9808b2d8 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 20 Jun 2016 10:03:03 +0200 Subject: [PATCH] Fix duplicate contacts detection not working any more --- addressbook/inc/class.addressbook_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 9e099b28a7..1a23911055 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -2471,7 +2471,7 @@ window.egw_LAB.wait(function() { // if email changed, check for doublicates if (in_array($name, array('email', 'email_home'))) { - if (preg_match('/^'.Etemplate\Widget\Url::EMAIL_PREG.'$/i', $values[$name])) // only search for real email addresses, to not return to many contacts + if (preg_match(Etemplate\Widget\Url::EMAIL_PREG, $values[$name])) // only search for real email addresses, to not return to many contacts { $contacts = parent::search(array( 'email' => $values[$name],