sanitize scope and host

This commit is contained in:
Michiel de Jong 2012-06-09 21:03:50 +02:00
parent 322fd51261
commit 995f9c7348
1 changed files with 2 additions and 2 deletions

View File

@ -44,9 +44,9 @@ foreach($_GET as $k => $v) {
$userId=$v;
} else if($k=='redirect_uri'){
$appUrlParts=explode('/', $v);
$appUrl = $appUrlParts[2];//bit dodgy i guess
$appUrl = htmlentities($appUrlParts[2]);//TODO: check if this is equal to client_id
} else if($k=='scope'){
$categories=$v;
$categories=htmlentities($v);
}
}
$currUser = OCP\USER::getUser();