Skip to content

Commit 23a93ae

Browse files
author
Mihkel Kivisild
committed
Escaping HTML special characters in welcome.phtml
WE2-970 Signed-off-by: Mihkel Kivisild <[email protected]>
1 parent f485367 commit 23a93ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/tpl/welcome.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<h1 class="text-center mt-5">Hello <?php echo $auth_user;?></h1>
1+
<h1 class="text-center mt-5">Hello <?php echo htmlspecialchars($auth_user);?></h1>
22
<p class="text-center"><a href="./logout">Logout</a></p>

0 commit comments

Comments
 (0)