diff --git a/src/static/js/pad_utils.js b/src/static/js/pad_utils.js index bab6aa43..bcfa95cc 100644 --- a/src/static/js/pad_utils.js +++ b/src/static/js/pad_utils.js @@ -520,7 +520,7 @@ function setupGlobalExceptionHandler() { $("#editorloadingbox").css("padding", "10px"); $("#editorloadingbox").css("padding-top", "45px"); $("#editorloadingbox").html("
An error occured
The error was reported with the following id: '" + errorId + "'

Please press and hold Ctrl and press F5 to reload this page, if the problem persists please send this error message to your webmaster:
'" - + "ErrorId: " + errorId + "
URL: " + window.location.href + "
UserAgent: " + navigator.userAgent + "
" + msg + " in " + url + " at line " + linenumber + "'
"); + + "ErrorId: " + errorId + "
URL: " + window.location.href + "
UserAgent: " + padutils.escapeHtml(navigator.userAgent) + "
" + msg + " in " + url + " at line " + linenumber + "'"); } //send javascript errors to the server