From: Alexander Ebert Date: Tue, 10 Mar 2015 22:09:50 +0000 (+0100) Subject: Small work-around for tags being able to breach out of quotes X-Git-Tag: 2.1.2~62 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dff180a187d45ca0cd6d6f4350f896784fcb73c6;p=GitHub%2FWoltLab%2FWCF.git Small work-around for tags being able to breach out of quotes --- 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]');