Skip to content

Commit

Permalink
Escape error message from server
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 20, 2016
1 parent 895a131 commit 364732e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ var PMA_console = {
} catch (e) {
console.log("Invalid JSON!" + e.message);
if (AJAX.xhr && AJAX.xhr.status === 0 && AJAX.xhr.statusText !== 'abort') {
PMA_ajaxShowMessage($('<div />',{'class':'error','html':PMA_messages.strRequestFailed+' ( '+AJAX.xhr.statusText+' )'}));
PMA_ajaxShowMessage($('<div />',{'class':'error','html':PMA_messages.strRequestFailed+' ( '+escapeHtml(AJAX.xhr.statusText)+' )'}));
AJAX.active = false;
AJAX.xhr = null;
}
Expand Down

0 comments on commit 364732e

Please sign in to comment.