X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Finfo%2Foptions.php;h=942fcb6714de8fc51aaf911684b0b3bddc9bf04e;hb=8ed1923822b383ddb338e9eef75bb7f110cc47b4;hp=82f5d546115e2c62177a8e06d546e30406d36436;hpb=c0d968010e710870fdfee2f22d7cc9fad370c7a9;p=squirrelmail.git diff --git a/plugins/info/options.php b/plugins/info/options.php index 82f5d546..942fcb67 100644 --- a/plugins/info/options.php +++ b/plugins/info/options.php @@ -6,7 +6,7 @@ * This is where it all happens :) * * @author Jason Munro - * @copyright 1999-2012 The SquirrelMail Project Team + * @copyright 1999-2019 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -53,7 +53,8 @@ for($i = 0; $i <= 9; $i++){ /* END GLOBALS */ -$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0); +global $imap_stream_options; // in case not defined in config +$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imap_stream_options); $caps_array = get_caps($imap_stream); $list = array ('TEST_0', 'TEST_1', @@ -75,7 +76,7 @@ echo '
'._("IMAP server information")." "
\n"; foreach($caps_array[0] as $value) { - echo htmlspecialchars($value); + echo sm_encode_html_special_chars($value); } echo "\n"; @@ -92,8 +93,8 @@ if (!isset($submit) || $submit == 'default') { } } else { - echo 'folder_prefix = ' . htmlspecialchars($folder_prefix)."
\n" . - 'default_charset = '.htmlspecialchars($default_charset)."\n"; + echo 'folder_prefix = ' . sm_encode_html_special_chars($folder_prefix)."
\n" . + 'default_charset = '.sm_encode_html_special_chars($default_charset)."\n"; } echo "

\n";