X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Ffilters%2Foptions.php;h=fa8409c91c5d3416ee23f2bcbb552f522e6a1e6e;hp=39b47beec40b9b234a0b4f15081b660584e40a41;hb=e7d5ff29db69101e42cd491d2fa42d4f83cd35a4;hpb=eceb3fe56e7ef548f83797639e9d6d993254695b
diff --git a/plugins/filters/options.php b/plugins/filters/options.php
index 39b47bee..fa8409c9 100644
--- a/plugins/filters/options.php
+++ b/plugins/filters/options.php
@@ -3,7 +3,7 @@
/**
* Message and Spam Filter Plugin - Filtering Options
*
- * @copyright © 1999-2009 The SquirrelMail Project Team
+ * @copyright 1999-2017 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
@@ -25,6 +25,7 @@ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
sqgetGlobalVar('theid', $theid);
sqgetGlobalVar('action', $action, SQ_GET);
+global $imap_stream_options; // in case not defined in config
if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) {
@@ -125,7 +126,7 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) {
if (isset($action) && ($action == 'add' || $action == 'edit')) {
- $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
+ $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imap_stream_options);
$boxes = sqimap_mailbox_list($imapConnection);
for ($a = 0, $cnt = count($boxes); $a < $cnt; $a++) {
@@ -180,7 +181,7 @@ if (sqgetGlobalVar('filter_submit',$filter_submit,SQ_POST)) {
html_tag( 'td', '', 'left' ) .
''.
''.
@@ -243,7 +244,7 @@ if (count($filters)) {
printf( _("If %s contains %s then move to %s"),
''.$filters[$i]['where'].'',
''.$filters[$i]['what'].'',
- ''.htmlspecialchars(imap_utf7_decode_local($fdr)).'');
+ ''.sm_encode_html_special_chars(imap_utf7_decode_local($fdr)).'');
echo '';
}