Skip to content

Commit 1829443

Browse files
authored
Escaping content for prevention of XSS attacks.
1 parent ba9ee48 commit 1829443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Views/magic_link_form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<h5 class="card-title mb-5"><?= lang('Auth.useMagicLink') ?></h5>
1111

1212
<?php if (session('error') !== null) : ?>
13-
<div class="alert alert-danger" role="alert"><?= session('error') ?></div>
13+
<div class="alert alert-danger" role="alert"><?= esc(session('error')) ?></div>
1414
<?php elseif (session('errors') !== null) : ?>
1515
<div class="alert alert-danger" role="alert">
1616
<?php if (is_array(session('errors'))) : ?>
1717
<?php foreach (session('errors') as $error) : ?>
18-
<?= $error ?>
18+
<?= esc($error) ?>
1919
<br>
2020
<?php endforeach ?>
2121
<?php else : ?>

0 commit comments

Comments
 (0)