From: hickert Date: Tue, 13 Sep 2005 05:49:28 +0000 (+0000) Subject: Added check for phone plugin. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eecc95b5127a4e25919ec9135c2f148af06fdc20;p=gosa.git Added check for phone plugin. characters like ' " caused mysql_errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1347 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index d09c80e0a..d66750bfb 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -946,10 +946,10 @@ class user extends plugin } /* Check for reserved characers */ - if (preg_match ('/[,+"<>;]/', $this->givenName)){ + if (preg_match ('/[,+"?\'<>;]/', $this->givenName)){ $message[]= _("The field 'Given name' contains invalid characters."); } - if (preg_match ('/[,+"<>;]/', $this->sn)){ + if (preg_match ('/[,+"?\'<>;]/', $this->sn)){ $message[]= _("The field 'Name' contains invalid characters."); }