X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Ffilters%2Fspamoptions.php;h=83db8307f90377091e66f14f8e4746d1006f945a;hp=8035c103fe7a40c0de2405b15e26dc704d6a9865;hb=6c84ba1ec45ab854c37b6f65c5b4d84ab1c7aad4;hpb=82d304a0501324b276cabab1870755d5352bd21c
diff --git a/plugins/filters/spamoptions.php b/plugins/filters/spamoptions.php
index 8035c103..83db8307 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']);
}
@@ -75,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 administrator to set the %s variable."), '"SpamFilters_YourHop"') .
'' ,
'center' ) .
- '
';
+ '
';
}
@@ -98,11 +114,11 @@ if (isset($action) && $action == 'spam') {
}
}
- echo '