diff --git a/plugins/admin/systems/class_goSpamServer.inc b/plugins/admin/systems/class_goSpamServer.inc
index 24884965fc4c74251e9361ed3e29a5c12943dbdc..1d47712203a724b0c2a3380daa0d805a23dc0923 100644 (file)
var $ui = NULL;
var $acl = NULL;
- function gospamserver($config,$dn)
+ function gospamserver($config,$dn, $parent= NULL)
{
/* Init class */
- plugin::plugin($config,$dn);
+ plugin::plugin($config,$dn, $parent);
$this->DisplayName = _("Spamassassin");
/* Get userinfo & acls */
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."));
+ }
}
}
plugin::save();
/* Create Flags */
- $this->attrs['saFlags'] = "";
+ $this->attrs['saFlags'] = array();
foreach($this->Flags as $flag){
$var = "saFlags".$flag;
if($this->$var){