From: Alexander Ebert Date: Sun, 15 Feb 2015 13:40:00 +0000 (+0100) Subject: Fixed list sanitizing X-Git-Tag: 2.1.0_RC_1~3^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=386c8bbe01f6a0571a0fe1649fbb192716413b65;p=GitHub%2FWoltLab%2FWCF.git Fixed list sanitizing --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 95d12408bf..ea6c0bef11 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -835,7 +835,7 @@ RedactorPlugins.wbbcode = function() { } // search for [*] not followed by [/list] - var $lastList = data.indexOf('[/list]'); + var $lastList = data.lastIndexOf('[/list]'); if ($lastList === -1) { // drop all [list*] and [*] data = data.replace(/\[\*\]/g, '');