Skip to content

Commit

Permalink
Prevent XSS on formatted user link
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored and trasher committed Nov 3, 2022
1 parent 01c2172 commit 32e5ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DbUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ public function formatUserName($ID, $login, $realname, $firstname, $link = 1, $c
($link == 1)
&& ($ID > 0)
) {
$before = "<a title=\"" . Toolbox::addslashes_deep($formatted) . "\"
$before = "<a title=\"" . htmlspecialchars($formatted) . "\"
href='" . User::getFormURLWithID($ID) . "'>";
$after = "</a>";
}
Expand Down

0 comments on commit 32e5ad6

Please sign in to comment.