浏览代码

HUE-6197 [impala] Fix XSS Vulnerability in the old editors' error messages

Enrico Berti 8 年之前
父节点
当前提交
2f8e9fe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/beeswax/src/beeswax/templates/execute.mako

+ 1 - 1
apps/beeswax/src/beeswax/templates/execute.mako

@@ -2251,7 +2251,7 @@ $(document).on('error.query', function () {
       errorWidgets.push(
         codeMirror.addLineWidget(
           selectedLine > 0 ? selectedLine - 1 : selectedLine,
-          $("<div>").addClass("editorError").html("<i class='fa fa-exclamation-circle'></i> " + err)[0], {
+          $("<div>").addClass("editorError").text(err)[0], {
             coverGutter: true,
             noHScroll: true
           }