From dff180a187d45ca0cd6d6f4350f896784fcb73c6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 10 Mar 2015 23:09:50 +0100 Subject: [PATCH] Small work-around for tags being able to breach out of quotes --- 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 ce12a62483..d3632200c6 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -404,7 +404,7 @@ RedactorPlugins.wbbcode = function() { return $quote; }); - html = html.replace(/(?:\n*)<\/blockquote>\n?/gi, '[/quote]\n'); + html = html.replace(/(?:\n*)<\/blockquote>\n?/gi, '\n[/quote]\n'); // [email] html = html.replace(/]*?href=(["'])mailto:(.+?)\1.*?>([\s\S]+?)<\/a>/gi, '[email=$2]$3[/email]'); -- 2.20.1