Small work-around for tags being able to breach out of quotes
authorAlexander Ebert <ebert@woltlab.com>
Tue, 10 Mar 2015 22:09:50 +0000 (23:09 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 10 Mar 2015 22:09:50 +0000 (23:09 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index ce12a6248307be02b9cd473d2e344627a78baf47..d3632200c69e6dc9c07c70d81e89a4446c2e34de 100644 (file)
@@ -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(/<a [^>]*?href=(["'])mailto:(.+?)\1.*?>([\s\S]+?)<\/a>/gi, '[email=$2]$3[/email]');