From: hickert Date: Wed, 9 Aug 2006 08:51:28 +0000 (+0000) Subject: Updated spam & virus services X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dadd0dab949e706943594f5aba7f45df2771b7e2;p=gosa.git Updated spam & virus services git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4438 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_goSpamServer.inc b/plugins/admin/systems/class_goSpamServer.inc index 24884965f..a9762a5b7 100644 --- a/plugins/admin/systems/class_goSpamServer.inc +++ b/plugins/admin/systems/class_goSpamServer.inc @@ -227,7 +227,11 @@ class gospamserver extends plugin{ function AddTrust($post) { if(!empty($post)){ - $this->TrustedNetworks[$post] = $post; + if(is_ip($post) || is_domain($post) || (is_ip_with_subnetmask($post))){ + $this->TrustedNetworks[$post] = $post; + }else{ + print_red(_("Specified value is not a valid 'trusted network' value.")); + } } } @@ -279,7 +283,7 @@ class gospamserver extends plugin{ plugin::save(); /* Create Flags */ - $this->attrs['saFlags'] = ""; + $this->attrs['saFlags'] = array(); foreach($this->Flags as $flag){ $var = "saFlags".$flag; if($this->$var){