From 218ea8d8638c5e1bbc05586900cb88d1867715cd Mon Sep 17 00:00:00 2001 From: Eric Jinks Date: Fri, 1 Jun 2018 16:17:01 +1000 Subject: [PATCH] Encode CMS image urls --- src/util/getImageUrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/getImageUrl.js b/src/util/getImageUrl.js index ed6f513..32fbd07 100644 --- a/src/util/getImageUrl.js +++ b/src/util/getImageUrl.js @@ -36,7 +36,7 @@ const getImageSrcset = path => { const getImageSrc = (path, sizeRequested) => { if (!path || path.match(/^http/) || path.match(/svg$/) || window.CMS) { - return path + return encodeURI(path) } sizeRequested = parseInt(sizeRequested, 10) let size