X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Ffilters%2Fspamoptions.php;h=a31ebaa5540de191898da2eee1a39a366c57c318;hp=2fc1706e4d4374883bba717f20e15f4b69230966;hb=326727cf39b3c1ba7b8dc2cc94b44a052734b78a;hpb=3c66c567ff1ec35d730b15368cf9563f1979496e
diff --git a/plugins/filters/spamoptions.php b/plugins/filters/spamoptions.php
index 2fc1706e..a31ebaa5 100644
--- a/plugins/filters/spamoptions.php
+++ b/plugins/filters/spamoptions.php
@@ -1,9 +1,6 @@
$Value) {
$input = $spam_filters[$Key]['prefname'] . '_set';
- if ( isset( $_POST[$input] ) ) {
- setPref( $data_dir, $username, $spam_filters[$Key]['prefname'],
- $_POST[$input]);
+ if ( sqgetGlobalVar($input,$input_key,SQ_POST) ) {
+ setPref( $data_dir, $username, $spam_filters[$Key]['prefname'],$input_key);
} else {
removePref($data_dir, $username, $spam_filters[$Key]['prefname']);
}
@@ -73,12 +91,12 @@ echo html_tag( 'table',
'center', $color[0], 'width="95%" border="0" cellpadding="2" cellspacing="0"' );
if ($SpamFilters_YourHop == ' ') {
- echo '
' .
+ echo '
' .
html_tag( 'div', '' .
- _("WARNING! Tell your admin to set the SpamFilters_YourHop variable") .
+ sprintf(_("WARNING! Tell the adminstrator to set the %s variable."), '"SpamFilters_YourHop"') .
'' ,
'center' ) .
- '
';
+ '
';
}
@@ -96,7 +114,7 @@ if (isset($action) && $action == 'spam') {
}
}
- echo '