浏览代码

HUE-4700 [beeswax] Protect against setting XSS in old editor

Romain Rigaux 9 年之前
父节点
当前提交
32845e1d60
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/beeswax/src/beeswax/templates/execute.mako

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

@@ -2499,7 +2499,7 @@ function updateSidebarTooltips(selector) {
     $(this).tooltip({
       placement: "right",
       title: $(this).val()
-    }).attr('data-original-title', $(this).val()).tooltip('fixTitle');
+    }).attr('data-original-title', escapeOutput($(this).val())).tooltip('fixTitle');
   });
 }