X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Finfo%2Ffunctions.php;h=412a2d894b9a5ac5e8dd880e1402d1b0559cf33f;hp=92f666dcc69f8b36e7d5c8bfda429e2296620503;hb=a9e1e670fab4399260e0790e018393c7dcefcecc;hpb=a7b90f05ac8a08954d355b96ab133ddaa2690221
diff --git a/plugins/info/functions.php b/plugins/info/functions.php
index 92f666dc..412a2d89 100644
--- a/plugins/info/functions.php
+++ b/plugins/info/functions.php
@@ -1,7 +1,8 @@
".$query." | ";
- fputs ($imap_stream, $query);
- $response = sqimap_read_data_list($imap_stream, $sid, false, $responses, $message);
- array_push($response, $message);
+ print "".htmlspecialchars($string)." |
";
+ $response = sqimap_run_command_list($imap_stream, trim($string),false, $responses, $message,false);
+ array_push($response, $responses . ' ' .$message);
return $response;
}
+/**
+ * Print the IMAP response to options.php
+ */
function print_response($response) {
foreach($response as $index=>$value) {
if (is_array($value)) {
print_response($value);
}
else {
- $value = preg_replace("/", "<", $value);
- $value = preg_replace("/>/", ">", $value);
- print $value."
\n";
+ print htmlspecialchars($value)."
\n";
}
}
}