From 83ec5b42509384410849eb51faf1ff4c9128e1b2 Mon Sep 17 00:00:00 2001 From: "Matteo V." Date: Wed, 16 Oct 2024 10:40:30 +0100 Subject: [PATCH] Fix #10615 removed eval from marker utils (#10616) --- web/client/utils/MarkerUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/utils/MarkerUtils.js b/web/client/utils/MarkerUtils.js index d7ed526bfe0..8d5d6b6c079 100644 --- a/web/client/utils/MarkerUtils.js +++ b/web/client/utils/MarkerUtils.js @@ -27,7 +27,7 @@ const loadGlyphs = (font) => { return Object.keys(fontJSON).reduce((acc, key) => { return { ...acc, - [key]: eval("'\\u" + fontJSON[key] + "'") // eslint-disable-line + [key]: String.fromCharCode(parseInt(fontJSON[key], 16)) }; }, {}); };