From: Alexander Ebert Date: Fri, 8 Mar 2013 01:40:10 +0000 (+0100) Subject: Fixed script tags recognized as dialog target X-Git-Tag: 2.0.0_Beta_1~435 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38fc45af0630fdd20494fb1887eda54d3a5382b5;p=GitHub%2FWoltLab%2FWCF.git Fixed script tags recognized as dialog target --- 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. */