From: Alexander Ebert Date: Thu, 19 Feb 2015 14:05:19 +0000 (+0100) Subject: Prevent nesting inside

X-Git-Tag: 2.1.0_RC_2~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c50601953b6bcd7abf486ce044075ad0a2d5984c;p=GitHub%2FWoltLab%2FWCF.git Prevent nesting
inside

--- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index b3e84c7d56..f180ef6348 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1059,7 +1059,7 @@ RedactorPlugins.wbbcode = function() { var $line = $.trim($tmp[$i]); if ($line.match(/^<([a-z]+)/) || $line.match(/<\/([a-z]+)>$/)) { - if (this.reIsBlock.test(RegExp.$1.toUpperCase())) { + if (this.reIsBlock.test(RegExp.$1.toUpperCase()) || RegExp.$1.toUpperCase() === 'TABLE') { // check if line starts and ends with the same tag if ($line.match(/^<([a-z]+).*<\/\1>/)) { data += $line;