From 0f87b73ae203d79f74765c97f637a51b87205515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 13 Jul 2016 11:31:55 +0200 Subject: [PATCH] HML encode embedded JSON data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/TableSearch.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/TableSearch.class.php b/libraries/TableSearch.class.php index 47dd5e2678..86ec73a01e 100644 --- a/libraries/TableSearch.class.php +++ b/libraries/TableSearch.class.php @@ -1180,7 +1180,7 @@ EOT; $html_output .= '
' . __('How to use') . '
'; $html_output .= ''; + . htmlspecialchars(json_encode($data)) . ''; $html_output .= '
'; $html_output .= '';