A free, self-hostable news aggregator…
htmlspecialchars pour les logs
Alexandre Alapetited93642d0d2b2
diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtmlindex 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>