X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Finfo%2Ffunctions.php;h=796ec8c831dc0659a0960d3734041977487ce91e;hb=c997cbe6f5a46d432d7733acb207dfcdfd00e49e;hp=412a2d894b9a5ac5e8dd880e1402d1b0559cf33f;hpb=a9e1e670fab4399260e0790e018393c7dcefcecc;p=squirrelmail.git diff --git a/plugins/info/functions.php b/plugins/info/functions.php index 412a2d89..796ec8c8 100644 --- a/plugins/info/functions.php +++ b/plugins/info/functions.php @@ -1,25 +1,28 @@ - + * @copyright 1999-2021 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ * @package plugins * @subpackage info */ /** * Get the IMAP capabilities + * + * @param mixed $imap_stream * @return array + * @access private */ function get_caps($imap_stream) { return sqimap_run_command_list($imap_stream, 'CAPABILITY',false, $responses, $message,false); @@ -27,11 +30,14 @@ function get_caps($imap_stream) { /** * Run an IMAP test and return the results + * + * @param mixed $imap_stream + * @param string $string imap command * @return array Response from the IMAP server + * @access private */ function imap_test($imap_stream, $string) { - global $default_charset; - print "".htmlspecialchars($string).""; + print "".sm_encode_html_special_chars($string).""; $response = sqimap_run_command_list($imap_stream, trim($string),false, $responses, $message,false); array_push($response, $responses . ' ' .$message); return $response; @@ -39,16 +45,17 @@ function imap_test($imap_stream, $string) { /** * Print the IMAP response to options.php + * + * @param array $response results of imap command + * @access private */ function print_response($response) { - foreach($response as $index=>$value) { + foreach($response as $value) { if (is_array($value)) { print_response($value); } else { - print htmlspecialchars($value)."
\n"; + print sm_encode_html_special_chars($value)."
\n"; } } } - -?>