summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 880e2d7)
raw | patch | inline | side by side (parent: 880e2d7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Aug 2006 08:51:28 +0000 (08:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Aug 2006 08:51:28 +0000 (08:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4438 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_goSpamServer.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_goSpamServer.inc b/plugins/admin/systems/class_goSpamServer.inc
index 24884965fc4c74251e9361ed3e29a5c12943dbdc..a9762a5b7f8c71e0eea51998942bb4916bb5f411 100644 (file)
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){