From 1cbf140f5707e0e81af814eb0e6c8a7299ece0e4 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 20 Jul 2018 09:39:29 +0200 Subject: [PATCH] Do not display data:image/ src as text --- umap/static/umap/js/umap.icon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.icon.js b/umap/static/umap/js/umap.icon.js index 5d822214..7c5e1729 100644 --- a/umap/static/umap/js/umap.icon.js +++ b/umap/static/umap/js/umap.icon.js @@ -62,7 +62,7 @@ L.U.Icon.Default = L.U.Icon.extend({ var src = this._getIconUrl('icon'); if (src) { // An url. - if (src.indexOf('http') === 0 || src.indexOf('/') === 0) { + if (src.indexOf('http') === 0 || src.indexOf('/') === 0 || src.indexOf('data:image') === 0) { this.elements.img = L.DomUtil.create('img', null, this.elements.container); this.elements.img.src = src; } else {