Skip to content

Commit

Permalink
Securely accept line breaks into the alert
Browse files Browse the repository at this point in the history
It allows to add line breaks without making the component vulnerable to xss
  • Loading branch information
shuergab authored Jul 24, 2023
1 parent adf9b2a commit 0ccbac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/base-alert-box.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
@endif
<div class="description font-light">
{{$helperText}}
{!! nl2br(htmlspecialchars($helperText)) !!}
</div>
</div>
</div>

0 comments on commit 0ccbac3

Please sign in to comment.