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

@@ -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:') ?>"