From a6816714ad7456632d7a2d707f346d0d7360a293 Mon Sep 17 00:00:00 2001 From: Lawrence Ye Date: Thu, 15 Mar 2018 10:05:46 +0800 Subject: [PATCH 1/4] escape single quotes in lean-analytics.swig --- layout/_third-party/analytics/lean-analytics.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_third-party/analytics/lean-analytics.swig b/layout/_third-party/analytics/lean-analytics.swig index 15f02ab016..46496471dc 100644 --- a/layout/_third-party/analytics/lean-analytics.swig +++ b/layout/_third-party/analytics/lean-analytics.swig @@ -77,7 +77,7 @@ {% if theme.leancloud_visitors.security %} var $element = $(document.getElementById(url)); $element.find('.leancloud-visitors-count').text('Counter not initialized! See more at console err msg.'); - console.error('ATTENTION! LeanCloud counter has security bug, see here how to solve it: https://github.com/theme-next/hexo-leancloud-counter-security. \n But you also can use LeanCloud without security, by set 'security' option to 'false'.'); + console.error('ATTENTION! LeanCloud counter has security bug, see here how to solve it: https://github.com/theme-next/hexo-leancloud-counter-security. \n But you also can use LeanCloud without security, by set \'security\' option to \'false\'.'); {% else %} var newcounter = new Counter(); /* Set ACL */ From 0a09c5da135b1bf37821eac6f1d842ea4b0ea525 Mon Sep 17 00:00:00 2001 From: Lawrence Ye Date: Thu, 15 Mar 2018 10:40:46 +0800 Subject: [PATCH 2/4] Add leancloud counter security annotation --- _config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_config.yml b/_config.yml index 620ebc3e35..285c980db3 100644 --- a/_config.yml +++ b/_config.yml @@ -610,6 +610,7 @@ leancloud_visitors: app_id: # app_key: # # Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security + # If you donnot want to use the security plugin(not recommended), please set the security to false. security: true betterPerformance: false From 7852f70b3bc3af13cc85e78707e3365ffad2df47 Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Thu, 15 Mar 2018 05:44:25 +0300 Subject: [PATCH 3/4] Updated LC security annotation. --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 285c980db3..87213ffbfd 100644 --- a/_config.yml +++ b/_config.yml @@ -610,7 +610,7 @@ leancloud_visitors: app_id: # app_key: # # Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security - # If you donnot want to use the security plugin(not recommended), please set the security to false. + # If you don't care about security in lc counter and just want to use it directly, set the `security` to `false`. security: true betterPerformance: false From 8f16ef6ad394df306445ad76a9449d6a84ac2371 Mon Sep 17 00:00:00 2001 From: "Ivan.Nginx" Date: Thu, 15 Mar 2018 05:56:32 +0300 Subject: [PATCH 4/4] Updated LC security description, again. --- _config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 87213ffbfd..50e413d80f 100644 --- a/_config.yml +++ b/_config.yml @@ -610,7 +610,8 @@ leancloud_visitors: app_id: # app_key: # # Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security - # If you don't care about security in lc counter and just want to use it directly, set the `security` to `false`. + # If you don't care about security in lc counter and just want to use it directly + # (without hexo-leancloud-counter-security plugin), set the `security` to `false`. security: true betterPerformance: false