fix: Solving unsanitized data left.

Issues #1 and #4
This commit is contained in:
sergiotarxz 2020-07-28 20:16:42 +02:00
parent 9b824a0788
commit 146cacd16f
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
<?php endif; ?>
</header>
<?php if ($page->coverImage()): ?>
<img src="<?php echo $page->coverImage() ?>" alt="<?php echo $page->slug(); ?>"/>
<img src="<?php echo htmlentities($page->coverImage(), ENT_QUOTES | ENT_HTML401); ?>" alt="<?php htmlentities(echo $page->slug(), ENT_QUOTES | ENT_HTML401); ?>"/>
<?php endif ?>
<?php echo $page->content() ?>

View File

@ -18,7 +18,7 @@
<?php echo $page->content() ?>
<footer>
<?php echo $page->date() ?>
<?php echo htmlentities($page->date()); ?>
</footer>
</article>
</section>