summaryrefslogtreecommitdiff
path: root/app/Template/gantt
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/gantt
parent17a3781bd8c03e6b653104dbcb996a1ff1213959 (diff)
Fix potential issue with json_encode() in templates
Diffstat (limited to 'app/Template/gantt')
-rw-r--r--app/Template/gantt/project.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Template/gantt/project.php b/app/Template/gantt/project.php
index 0c545be8..ec45f7f6 100644
--- a/app/Template/gantt/project.php
+++ b/app/Template/gantt/project.php
@@ -35,7 +35,7 @@
<?php if (! empty($tasks)): ?>
<div
id="gantt-chart"
- data-tasks='<?= json_encode($tasks) ?>'
+ data-tasks='<?= json_encode($tasks, JSON_HEX_APOS) ?>'
data-save-url="<?= $this->url->href('gantt', 'saveDate', array('project_id' => $project['id'])) ?>"
data-label-start-date="<?= t('Start date:') ?>"
data-label-end-date="<?= t('Due date:') ?>"