diff --git a/src/oauth2server/Server.php b/src/oauth2server/Server.php index 50153c0e..857daefe 100644 --- a/src/oauth2server/Server.php +++ b/src/oauth2server/Server.php @@ -154,6 +154,7 @@ maintenance of the server.' $scopes = explode($this->config['scope_delimeter'], $scopes); + // Remove any junk scopes for ($i = 0; $i < count($scopes); $i++) { $scopes[$i] = trim($scopes[$i]);