Fix potential issue with json_encode() in templates

This commit is contained in:
Frederic Guillot
2015-08-14 17:25:25 -04:00
parent 17a3781bd8
commit 357102dc6e
9 changed files with 10 additions and 10 deletions

View File

@@ -7,7 +7,7 @@
<?php else: ?>
<section id="analytic-avg-time-column">
<div id="chart" data-metrics='<?= json_encode($metrics) ?>' data-label="<?= t('Average time spent') ?>"></div>
<div id="chart" data-metrics='<?= json_encode($metrics, JSON_HEX_APOS) ?>' data-label="<?= t('Average time spent') ?>"></div>
<table class="table-stripped">
<tr>