diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-14 17:25:25 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-14 17:25:25 -0400 |
commit | 357102dc6e05bba22a65fd690f8611b131bbae8d (patch) | |
tree | b70a88bca438432ed2eff66da9a3c18172e4c33f /app/Template/gantt | |
parent | 17a3781bd8c03e6b653104dbcb996a1ff1213959 (diff) |
Fix potential issue with json_encode() in templates
Diffstat (limited to 'app/Template/gantt')
-rw-r--r-- | app/Template/gantt/project.php | 2 |
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:') ?>" |