From: Alexander Ebert Date: Tue, 8 Sep 2015 11:13:54 +0000 (+0200) Subject: Fixed dollar signs incorrectly treated inside [code] X-Git-Tag: 2.1.8~48 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=692c8f437ba69c80e6df65079c69f072f72895df;p=GitHub%2FWoltLab%2FWCF.git Fixed dollar signs incorrectly treated inside [code] --- 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, '$$$')); }); }