Code

Updated preg_match for serv Nfs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Nov 2006 05:11:24 +0000 (05:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Nov 2006 05:11:24 +0000 (05:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5198 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servNfs.inc

index 043813d5e93b264215a78f5fdb7e995ee4db5edb..4eb7760465be68d8b87200686fa74e9a6ef31eef 100644 (file)
@@ -190,11 +190,11 @@ class servnfs extends plugin
       }
     }
 
-    if(preg_match("/[^a-z0-9._+ -]+/i",$this->description)){
+    if(preg_match("/[^a-z0-9\._+ -]+/i",$this->description)){
       $message[]=_("Description contains invalid characters.");
     }
 
-    if(preg_match("/[^a-z0-9._+ -]/i",$this->volume)){
+    if(preg_match("/[^a-z0-9\._+ -]/i",$this->volume)){
       $message[]=_("Volume contains invalid characters.");
     }