Explorar o código

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

Romain Rigaux %!s(int64=9) %!d(string=hai) anos
pai
achega
32845e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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');
   });
 }