Code

Added check for phone plugin.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Sep 2005 05:49:28 +0000 (05:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Sep 2005 05:49:28 +0000 (05:49 +0000)
characters like ' " caused mysql_errors

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1347 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index d09c80e0a2e5675e1c353de15248a7643e97e1d0..d66750bfb710d558d3216bac91c74318fb963c7d 100644 (file)
@@ -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.");
   }