summaryrefslogtreecommitdiff
path: root/app/Template/analytic/lead_cycle_time.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-14 17:25:25 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-14 17:25:25 -0400
commit357102dc6e05bba22a65fd690f8611b131bbae8d (patch)
treeb70a88bca438432ed2eff66da9a3c18172e4c33f /app/Template/analytic/lead_cycle_time.php
parent17a3781bd8c03e6b653104dbcb996a1ff1213959 (diff)
Fix potential issue with json_encode() in templates
Diffstat (limited to 'app/Template/analytic/lead_cycle_time.php')
-rw-r--r--app/Template/analytic/lead_cycle_time.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/analytic/lead_cycle_time.php b/app/Template/analytic/lead_cycle_time.php
index d96bdcb8..8e04bd6d 100644
--- a/app/Template/analytic/lead_cycle_time.php
+++ b/app/Template/analytic/lead_cycle_time.php
@@ -14,7 +14,7 @@
<?php else: ?>
<section id="analytic-lead-cycle-time">
- <div id="chart" data-metrics='<?= json_encode($metrics) ?>' data-label-cycle="<?= t('Cycle Time') ?>" data-label-lead="<?= t('Lead Time') ?>"></div>
+ <div id="chart" data-metrics='<?= json_encode($metrics, JSON_HEX_APOS) ?>' data-label-cycle="<?= t('Cycle Time') ?>" data-label-lead="<?= t('Lead Time') ?>"></div>
<form method="post" class="form-inline" action="<?= $this->url->href('analytic', 'leadAndCycleTime', array('project_id' => $project['id'])) ?>" autocomplete="off">