From: hickert Date: Tue, 4 Sep 2007 12:05:39 +0000 (+0000) Subject: Updated check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=54b5efb53afebf6e9ee70ce1a7154405e9e4241b;p=gosa.git Updated check git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7209 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); }