From: hickert Date: Tue, 1 Jul 2008 09:01:03 +0000 (+0000) Subject: Updated FAI release creation check, valid characters for a release are now "a-z0-9." X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=37ad35ff66562eb64e23c3d42188c9a31e4673e9;p=gosa.git Updated FAI release creation check, valid characters for a release are now "a-z0-9." git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11494 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index 06a625f06..d26a71773 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -577,8 +577,8 @@ class faiManagement extends plugin $base= $this->fai_base; /* Check used characters */ - if(!preg_match("/^[0-9a-z \ö\ä\ü\.\-_:,]*$/i",$name)){ - msg_dialog::display(_("Error"), msgPool::invalid(_("Name"),$name,"/[0-9a-z \ö\ä\ü\.\-_:,]/i"), ERROR_DIALOG); + if(!preg_match("/^[0-9a-z\.]*$/",$name)){ + msg_dialog::display(_("Error"), msgPool::invalid(_("Name"),$name,"/[0-9a-z\.]/"), ERROR_DIALOG); $is_ok = false; }