From 03939b67d7a0033d8fb648692e17757f9e3229c3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 11 Dec 2016 12:46:23 +0100 Subject: [PATCH] Fixed media thumbnail type --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js index a2ff5def1a..21646f031e 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabMedia.js @@ -25,7 +25,7 @@ $.Redactor.prototype.WoltLabMedia = function() { var image = elCreate('img'); image.className = 'woltlabSuiteMedia' + float; //noinspection JSUnresolvedVariable - image.src = this.opts.woltlab.mediaUrl.replace('-123456789', data.attributes[0]).replace('thumbnail=void', 'thumbnail=' + data.attributes[1]); + image.src = this.opts.woltlab.mediaUrl.replace(/&/, '&').replace('-123456789', data.attributes[0]).replace('thumbnail=void', 'thumbnail=' + data.attributes[1]); elData(image, 'media-id', data.attributes[0]); elData(image, 'media-size', data.attributes[1]); -- 2.20.1