Skip to content
Snippets Groups Projects
Commit 5155f589 authored by Michiel de Jong's avatar Michiel de Jong
Browse files

prevent xss in webfinger

parent cde60dba
No related merge requests found
......@@ -26,7 +26,7 @@ $WEBROOT=substr($SUBURI,0,-34);
*/
$request = urldecode($_GET['q']);
$request = strip_tags(urldecode($_GET['q']));
if($_GET['q']) {
$reqParts = explode('@', $request);
$userName = $reqParts[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment