X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Finfo%2Foptions.php;h=5cb508402f60f7753349bcf2a1afc6b4614dfa5a;hp=4bfee7b7829827e6adba726a680daacd6e2fc114;hb=HEAD;hpb=ae5dddc065f9501f267c4edaf68a066835da915f diff --git a/plugins/info/options.php b/plugins/info/options.php index 4bfee7b7..645271af 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-2011 The SquirrelMail Project Team + * @copyright 1999-2022 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";