1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +00:00

Prevent users from including attacks in their names.

This commit is contained in:
Starbeamrainbowlabs 2017-02-18 21:45:52 +00:00
parent 9702343735
commit 3c5815bf76

View file

@ -1129,7 +1129,7 @@ class page_renderer
$result = ""; $result = "";
if(in_array($name, $settings->admins)) if(in_array($name, $settings->admins))
$result .= $settings->admindisplaychar; $result .= $settings->admindisplaychar;
$result .= "<a href='?page=" . rawurlencode(get_user_pagename($name)) . "'>$name</a>"; $result .= "<a href='?page=" . rawurlencode(get_user_pagename($name)) . "'>" . htmlentities($name) . "</a>";
return $result; return $result;
} }