From eecc95b5127a4e25919ec9135c2f148af06fdc20 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 13 Sep 2005 05:49:28 +0000 Subject: [PATCH] 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 --- plugins/personal/generic/class_user.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); } -- 2.30.2