summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-08-03 15:20:01 +0000
committerTom Needham <needham.thomas@gmail.com>2012-08-03 15:20:01 +0000
commit21f8646ffc9057bd15fe8a30b781ee20766b5656 (patch)
tree03e63472be620eb6383aa69b01463b8540592379 /settings
parent6047a5fe515091d755e964c24de93fc29a5f9754 (diff)
downloadnextcloud-server-21f8646ffc9057bd15fe8a30b781ee20766b5656.tar.gz
nextcloud-server-21f8646ffc9057bd15fe8a30b781ee20766b5656.zip
API: Fix merging of responses. Return 400 error when no OAuth operation sent.
Diffstat (limited to 'settings')
-rw-r--r--settings/oauth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/oauth.php b/settings/oauth.php
index 7f30161d852..f088453a26a 100644
--- a/settings/oauth.php
+++ b/settings/oauth.php
@@ -76,8 +76,8 @@ switch($operation){
}
break;
default:
- // Something went wrong
- header('Location: /');
+ // Something went wrong, we need an operation!
+ OC_Response::setStatus(400);
break;
}