htmlspecialchars pour les logs

This commit is contained in:
Alexandre Alapetite
2013-10-24 11:15:57 +02:00
parent d5f714146f
commit d93642d0d2

View File

@@ -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>
</div>