aboutsummaryrefslogtreecommitdiff
path: root/app/views/stats
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-04-12 16:36:45 +0200
committerGravatar GitHub <noreply@github.com> 2020-04-12 16:36:45 +0200
commit82278af7a9e8d0ebfecd301b2889bcbb2e09fcbf (patch)
tree820ea285513cf1ca98fb2c7c9326f5dbfdac13c3 /app/views/stats
parent14fa3f27817d36a2add3c985ccbf553a9ec0e0a0 (diff)
Fix double HTML-encoding in category names (#2897)
Category names are already HTML-encoded when reaching the view.
Diffstat (limited to 'app/views/stats')
-rw-r--r--app/views/stats/index.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtml
index 4af197c5b..661485f75 100644
--- a/app/views/stats/index.phtml
+++ b/app/views/stats/index.phtml
@@ -83,11 +83,11 @@
</div>
<script id="jsonStats" type="application/json"><?php
-echo htmlspecialchars(json_encode(array(
+echo json_encode(array(
'average' => $this->average,
'dataCount' => $this->count,
'feedByCategory' => $this->feedByCategory,
'entryByCategory' => $this->entryByCategory,
-), JSON_UNESCAPED_UNICODE), ENT_NOQUOTES, 'UTF-8');
+), JSON_UNESCAPED_UNICODE);
?></script>
<script src="../scripts/stats.js?<?= @filemtime(PUBLIC_PATH . '/scripts/stats.js') ?>"></script>