Skip to content

Commit

Permalink
Escaping content for prevention of XSS attacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
warcooft authored Jul 18, 2024
1 parent ba9ee48 commit 1829443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Views/magic_link_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<h5 class="card-title mb-5"><?= lang('Auth.useMagicLink') ?></h5>

<?php if (session('error') !== null) : ?>
<div class="alert alert-danger" role="alert"><?= session('error') ?></div>
<div class="alert alert-danger" role="alert"><?= esc(session('error')) ?></div>
<?php elseif (session('errors') !== null) : ?>
<div class="alert alert-danger" role="alert">
<?php if (is_array(session('errors'))) : ?>
<?php foreach (session('errors') as $error) : ?>
<?= $error ?>
<?= esc($error) ?>
<br>
<?php endforeach ?>
<?php else : ?>
Expand Down

0 comments on commit 1829443

Please sign in to comment.