From c50601953b6bcd7abf486ce044075ad0a2d5984c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 19 Feb 2015 15:05:19 +0100 Subject: [PATCH] Prevent nesting inside

--- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1