From 3f23433981d6f82947ce4a8db770ea4277767e9c Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 May 2006 11:28:38 +0000 Subject: [PATCH] Added a check to force a zoneName reverseName to be given git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3463 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNSeditZone.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc index 19662d38b..7fcef3aa0 100644 --- a/plugins/admin/systems/class_servDNSeditZone.inc +++ b/plugins/admin/systems/class_servDNSeditZone.inc @@ -355,6 +355,14 @@ class servdnseditZone extends plugin } } + if(empty($this->zoneName)){ + $message[] =sprintf(_("Please choose a valid zone name.")); + } + + if(empty($this->ReverseZone)){ + $message[] =sprintf(_("Please choose a valid reverse zone name.")); + } + if(!preg_match("/\.$/",$this->sOAprimary)){ $message[] = _("Primary dns server must end with '.' to be a valid entry."); } -- 2.30.2