From 2b6db69a5a9c842bd0b510dee7d6fa2dec21bbea Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 20 Jul 2012 15:57:29 +0100 Subject: [PATCH] Added comment to explain code that removes invalid scopes --- src/oauth2server/Server.php | 1 + 1 file changed, 1 insertion(+) 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]);