From 02971f754fc4623ce3a4edaf25b9dcb0ce2af271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 20 Jun 2016 10:06:42 +0200 Subject: [PATCH] Escape HTML when rendering AJAX error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- js/ajax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ajax.js b/js/ajax.js index 1336e11fd5..ae7642ba1c 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -808,8 +808,8 @@ $(document).ajaxError(function(event, request, settings){ PMA_ajaxShowMessage( '
' + PMA_messages['strErrorProcessingRequest'] - + '
' + errorCode + '
' - + '
' + errorText + '
' + + '
' + escapeHtml(errorCode) + '
' + + '
' + escapeHtml(errorText) + '
' + '
', false );