Encode CMS image urls

This commit is contained in:
Eric Jinks 2018-06-01 16:17:01 +10:00
parent 52af104e1d
commit 218ea8d863

View file

@ -36,7 +36,7 @@ const getImageSrcset = path => {
const getImageSrc = (path, sizeRequested) => { const getImageSrc = (path, sizeRequested) => {
if (!path || path.match(/^http/) || path.match(/svg$/) || window.CMS) { if (!path || path.match(/^http/) || path.match(/svg$/) || window.CMS) {
return path return encodeURI(path)
} }
sizeRequested = parseInt(sizeRequested, 10) sizeRequested = parseInt(sizeRequested, 10)
let size let size