From 6aefb2ec4b84dc107e9a47822baba7284839f6a8 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Oct 2007 13:43:07 +0000 Subject: [PATCH] Allow umlauts in shares git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7521 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servNfs.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/admin/systems/class_servNfs.inc b/plugins/admin/systems/class_servNfs.inc index 9f6a3e93d..9353b955d 100644 --- a/plugins/admin/systems/class_servNfs.inc +++ b/plugins/admin/systems/class_servNfs.inc @@ -177,7 +177,7 @@ class servnfs extends plugin // Skip if there are diallowed characters if(!$this->is_edit){ - if(!preg_match("/^[a-z0-9\.\-_]+$/i",$this->name)){ + if(!preg_match("/^[a-z0-9\._\-äüö]*$/ui",$this->name)){ $message[]=_("Please specify a valid name for your share."); } if(empty($this->name)){ @@ -185,11 +185,11 @@ class servnfs extends plugin } } - if(preg_match("/[^a-z0-9\._+ -]+/i",$this->description)){ + if(preg_match("/^[a-z0-9\._äüö\+ -]*$/ui",$this->description)){ $message[]=_("Description contains invalid characters."); } - if(preg_match("/[^a-z0-9\._+ -]/i",$this->volume)){ + if(preg_match("/^[a-z0-9\._äüö\+ -]*$/ui",$this->volume)){ $message[]=_("Volume contains invalid characters."); } @@ -197,7 +197,7 @@ class servnfs extends plugin $message[]=_("Path contains invalid characters."); } - if(preg_match("/[^a-z0-9\._,=+ -]/i",$this->option)){ + if(preg_match("/^[a-z0-9\._äüö,=\+- ]*$/ui",$this->option)){ $message[]=_("Option contains invalid characters."); } -- 2.30.2