Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit abe06f0

Browse files
authored
Merge pull request #5 from kyto-gmbh/bugfix/escape-thumbnail-url
Escape thumbnail preview url for existing images
2 parents da634c9 + 356cec2 commit abe06f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/public/js/FileUploader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function PunkAveFileUploader(options)
2020
_.each(files, function(file) {
2121
appendEditableImage({
2222
// cmsMediaUrl is a global variable set by the underscoreTemplates partial of MediaItems.html.twig
23-
'thumbnail_url': viewUrl + '/thumbnails/' + file,
23+
'thumbnail_url': viewUrl + '/thumbnails/' + encodeURIComponent(file),
2424
'url': viewUrl + '/originals/' + file,
2525
'name': file
2626
});

0 commit comments

Comments
 (0)