From 28ff455fdad1d58bd48e8eefb94726403761b54b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 26 Oct 2014 21:22:17 +0100 Subject: [PATCH] Fixed quotes with usernames containing square brackets --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 4a1bb82fba..6b59ee1054 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -755,10 +755,10 @@ RedactorPlugins.wbbcode = function() { var self = this; var $transformQuote = function(quote) { - return quote.replace(/\[quote([^\]]+)?\]([\S\s]*)\[\/quote\]?/gi, function(match, attributes, innerContent) { + return quote.replace(/\[quote(=['"].+['"])?\]([\S\s]*)\[\/quote\]/gi, function(match, attributes, innerContent) { var $author = ''; var $link = ''; - + console.debug("hi"); if (attributes) { attributes = attributes.substr(1); attributes = attributes.split(','); -- 2.20.1