Permalink
Browse files

Fix for DFL-2882, script syntax error load dragonfly in dragonfly.

  • Loading branch information...
1 parent 212bdda commit 70ff16026a41650a37a646a52edf31dd663a52e2 @chriskr chriskr committed Mar 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/syntaxhighlight/js/tokenizer.js
@@ -867,7 +867,9 @@ cls.SimpleJSParser.prototype = new function()
{
if(__parse_error_first_token)
{
- __line = "<div class='error-description'>" + __parse_error_description + "</div>" +
+ __line = "<div class='error-description'>" +
+ helpers.escapeTextHtml(__parse_error_description) +
+ "</div>" +
"<span class='not-error'>" + __line + "</span>" +
"<span class='first-error'>" + __buffer + "</span>";
__parse_error_first_token = false;

0 comments on commit 70ff160

Please sign in to comment.