From af32058e999e206753703cf55e91d75781ef6ce5 Mon Sep 17 00:00:00 2001 From: xmcp Date: Mon, 13 May 2019 21:49:49 +0800 Subject: [PATCH] encode stats value --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 215ad9f..eb673b7 100644 --- a/public/index.html +++ b/public/index.html @@ -33,7 +33,7 @@ var config=JSON.parse(localStorage['hole_config']||'{}'); for(var key in config) if(config.hasOwnProperty(key)) - _czc.push(["_setCustomVar","config_"+key,JSON.stringify(config[key]),0]); + _czc.push(["_setCustomVar","config_"+key,encodeURIComponent(JSON.stringify(config[key])),0]); } catch(e) { console.trace(e); }