Skip to content

Commit 816cce7

Browse files
authored
add esc to echo $error
1 parent b840a60 commit 816cce7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • user_guide_src/source/libraries/validation
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php if (! empty($errors)): ?>
22
<div class="alert alert-danger">
33
<?php foreach ($errors as $field => $error): ?>
4-
<p><?= $error ?></p>
4+
<p><?= esc($error) ?></p>
55
<?php endforeach ?>
66
</div>
77
<?php endif ?>

0 commit comments

Comments
 (0)