From 386c8bbe01f6a0571a0fe1649fbb192716413b65 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 15 Feb 2015 14:40:00 +0100 Subject: [PATCH] Fixed list sanitizing --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ''); -- 2.20.1