From 42c9f629b497f7c8f2acacc1e52c004adb5c53f8 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 8 Jun 2006 04:57:52 +0000 Subject: [PATCH] Fixed save method to prevent errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3688 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_goMailServer.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc index 701428b02..851ad5b58 100644 --- a/plugins/admin/systems/class_goMailServer.inc +++ b/plugins/admin/systems/class_goMailServer.inc @@ -504,6 +504,9 @@ class goMailServer extends plugin{ function save() { + $this->postfixMyDomain = preg_replace("/^[^\.]+\./","",$this->postfixMyhostname); + $this->postfixMyhostname = preg_replace("/\..*$/","",$this->postfixMyhostname); + plugin::save(); /* Fix transport table*/ @@ -546,14 +549,11 @@ class goMailServer extends plugin{ foreach($this->postfixMyNetworks as $entry){ $this->attrs['postfixMyNetworks'] .=$entry.","; } + $this->postfixMyNetworks = preg_replace("/,$/","",$this->attrs['postfixMyNetworks']); }else{ $this->attrs['postfixMyNetworks'] = array(); } - $this->attrs['postfixMyNetworks'] = preg_replace("/,$/","",$this->attrs['postfixMyNetworks']); - - $this->attrs['postfixMyhostname'] = preg_replace("/\..*$/","",$this->postfixMyhostname); - $this->attrs['postfixMyDomain'] = preg_replace("/^[^\.]+\./","",$this->postfixMyhostname); /* Check if this is a new entry ... add/modify */ $ldap = $this->config->get_ldap_link(); @@ -595,7 +595,7 @@ class goMailServer extends plugin{ function check() { $message =plugin::check(); - + if(!is_numeric($this->postfixHeaderSizeLimit)){ $message[] = _("Please specify a numeric value for header size limit."); } -- 2.30.2