From 38fc45af0630fdd20494fb1887eda54d3a5382b5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 8 Mar 2013 02:40:10 +0100 Subject: [PATCH] Fixed script tags recognized as dialog target --- wcfsetup/install/files/js/WCF.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 1fc7ca3ad7..6d8a8067d4 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7573,6 +7573,19 @@ $.widget('ui.wcfDialog', { onShow: null }, + /** + * @see $.widget._createWidget() + */ + _createWidget: function(options, element) { + // ignore script tags + if ($(element).getTagName() === 'script') { + console.debug("[ui.wcfDialog] Ignored script tag"); + return null; + } + + $.Widget.prototype._createWidget.apply(this, arguments); + }, + /** * Initializes a new dialog. */ -- 2.20.1