From 3a373b4a14f9fbb3f8f7dbec3b0166efe17cac1f Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Tue, 2 Aug 2011 01:27:52 +0200 Subject: [PATCH] Respect MaxCharactersInDisplayedSQL in process list on Server Status page --- server_status.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/server_status.php b/server_status.php index 7e4babdc34..e5bb06f1cb 100644 --- a/server_status.php +++ b/server_status.php @@ -1055,7 +1055,19 @@ function printServerTraffic() { - + + $GLOBALS['cfg']['MaxCharactersInDisplayedSQL']) { + echo htmlspecialchars(substr($process['Info'], 0, $GLOBALS['cfg']['MaxCharactersInDisplayedSQL'])) . '[...]'; + } else { + echo PMA_SQP_formatHtml(PMA_SQP_parse($process['Info'])); + } + } + ?> +