summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-10-24 02:43:34 -0700
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-10-24 02:43:34 -0700
commit64b1bb37c290154a87a29f368185cc1398f56d30 (patch)
tree48aa78542d4bcdd8e64056533ca67014abfb83fd
parentd5f714146f361a812415c2810270b944f2251813 (diff)
parentd93642d0d2b207f98c49ce738f281a80d7699de2 (diff)
Merge pull request #211 from Alkarex/patch-3
htmlspecialchars pour les logs
-rw-r--r--app/views/index/logs.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtml
index c72a84c86..09f0c4ecd 100644
--- a/app/views/index/logs.phtml
+++ b/app/views/index/logs.phtml
@@ -10,7 +10,7 @@
<?php $this->logsPaginator->render ('logs_pagination.phtml', 'page'); ?>
<?php foreach ($items as $log) { ?>
- <div class="log <?php echo $log->level (); ?>"><span class="date"><?php echo date ('d/m/Y - H:i:s', strtotime ($log->date ())); ?></span><?php echo $log->info (); ?></div>
+ <div class="log <?php echo $log->level (); ?>"><span class="date"><?php echo date ('d/m/Y - H:i:s', strtotime ($log->date ())); ?></span><?php echo htmlspecialchars ($log->info (), ENT_NOQUOTES, 'UTF-8'); ?></div>
<?php } ?>
<?php $this->logsPaginator->render ('logs_pagination.phtml','page'); ?>
@@ -18,4 +18,4 @@
<?php } else { ?>
<p class="alert alert-warn"><?php echo Translate::t ('logs_empty'); ?></p>
<?php } ?>
-</div> \ No newline at end of file
+</div>