From e505eae55231d23f574fb1f863e47b32075a4101 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 24 Aug 2005 06:07:22 +0000 Subject: [PATCH] | is no longer allowed in goShareServer Tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1215 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servNfs.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/admin/systems/class_servNfs.inc b/plugins/admin/systems/class_servNfs.inc index 95957ecc5..ebbd08344 100644 --- a/plugins/admin/systems/class_servNfs.inc +++ b/plugins/admin/systems/class_servNfs.inc @@ -111,6 +111,18 @@ class servnfs extends plugin } } + if(preg_match("/\|/",$this->description)){ + $message[]=_("Description contains invalid characters."); + } + + if(preg_match("/\|/",$this->path)){ + $message[]=_("Path contains invalid characters."); + } + + if(preg_match("/\|/",$this->option)){ + $message[]=_("Option contains invalid characters."); + } + $ldap= $this->config->get_ldap_link(); $ldap->cd($this->config->current['BASE']); $ldap->search("(objectClass=goShareServer)", array("goExportEntry")); -- 2.30.2