From 54b5efb53afebf6e9ee70ce1a7154405e9e4241b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Sep 2007 12:05:39 +0000 Subject: [PATCH] Updated check git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7209 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNSeditZoneEntries.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc index 08aab7154..a77f6c6d3 100644 --- a/plugins/admin/systems/class_servDNSeditZoneEntries.inc +++ b/plugins/admin/systems/class_servDNSeditZoneEntries.inc @@ -223,7 +223,7 @@ class servDNSeditZoneEntries extends plugin /* Checking entry name */ - if((!is_uid($DevName)) || (empty($DevName))){ + if(!preg_match("/^[a-z0-9_\.-]+$/i", $DevName) || (empty($DevName))){ $message[] = sprintf(_("Entry name '%s' contains invalid characters."), $DevName); } -- 2.30.2