summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-10-24 11:15:57 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-10-24 11:15:57 +0200
commitd93642d0d2b207f98c49ce738f281a80d7699de2 (patch)
tree48aa78542d4bcdd8e64056533ca67014abfb83fd
parentd5f714146f361a812415c2810270b944f2251813 (diff)
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>