Commit dc2be10a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2567673 by joelpittet: Escaped markup with $.text() injected into a tag will cause XSS

parent df7ced55
Loading
Loading
Loading
Loading
+1 −1
Changes for core/modules/views_ui/js/views-admin.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@
   */
  Drupal.viewsUi.AddItemForm.prototype.handleCheck = function (event) {
    var $target = $(event.target);
    var label = $.trim($target.next().text());
    var label = $.trim($target.next().html());
    // Add/remove the checked item to the list.
    if ($target.is(':checked')) {
      this.$selected_div.show().css('display', 'block');