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/budget | |
parent | 17a3781bd8c03e6b653104dbcb996a1ff1213959 (diff) |
Fix potential issue with json_encode() in templates
Diffstat (limited to 'app/Template/budget')
-rw-r--r-- | app/Template/budget/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/budget/index.php b/app/Template/budget/index.php index 80153bbd..51ef3d87 100644 --- a/app/Template/budget/index.php +++ b/app/Template/budget/index.php @@ -6,8 +6,8 @@ <div id="budget-chart"> <div id="chart" data-date-format="<?= e('%%Y-%%m-%%d') ?>" - data-metrics='<?= json_encode($daily_budget) ?>' - data-labels='<?= json_encode(array('in' => t('Budget line'), 'out' => t('Expenses'), 'left' => t('Remaining'), 'value' => t('Amount'), 'date' => t('Date'), 'type' => t('Type'))) ?>'></div> + data-metrics='<?= json_encode($daily_budget, JSON_HEX_APOS) ?>' + data-labels='<?= json_encode(array('in' => t('Budget line'), 'out' => t('Expenses'), 'left' => t('Remaining'), 'value' => t('Amount'), 'date' => t('Date'), 'type' => t('Type')), JSON_HEX_APOS) ?>'></div> </div> <hr/> <table class="table-fixed table-stripped"> |