From 692c8f437ba69c80e6df65079c69f072f72895df Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 8 Sep 2015 13:13:54 +0200 Subject: [PATCH] Fixed dollar signs incorrectly treated inside [code] --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 3 +-- 1 file changed, 1 insertion(+), 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 50f8342bc5..232026cf55 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -844,8 +844,7 @@ RedactorPlugins.wbbcode = function() { } var $bbcode = '[code' + ($attributes.length ? '=' + $attributes : '') + ']' + listing.codeContent + '[/code]\n'; - - html = html.replace(new RegExp('@@@' + uuid + '@@@\n?', 'g'), $bbcode); + html = html.replace(new RegExp('@@@' + uuid + '@@@\n?', 'g'), $bbcode.replace(/\$/g, '$$$')); }); } -- 2.20.1