summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/apioauth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/apioauth.php b/lib/apioauth.php
index 6a9ab6377..b2d8faa5a 100644
--- a/lib/apioauth.php
+++ b/lib/apioauth.php
@@ -93,7 +93,7 @@ class ApiOauthAction extends ApiAction
$queryArray = explode('&', $_SERVER['QUERY_STRING']);
for ($i = 0; $i < sizeof($queryArray); $i++) {
- if (substr($queryArray[$i], 0, 1) == 'p=') {
+ if (substr($queryArray[$i], 0, 2) == 'p=') {
unset($queryArray[$i]);
}
}