summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-22 12:18:40 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-22 12:18:40 +0200
commit78210c83002fce9c0ea71c86409e46a46ba5d759 (patch)
tree7a83932ad17c8f09a291360d09b7820ddfb19d31 /lib/private/legacy
parent26f1745fb97343c24a470505e921790ecba0cc3d (diff)
downloadnextcloud-server-78210c83002fce9c0ea71c86409e46a46ba5d759.tar.gz
nextcloud-server-78210c83002fce9c0ea71c86409e46a46ba5d759.zip
Return 404 on v2.php when the app is disabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/ocs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/ocs.php b/lib/private/legacy/ocs.php
index 2ed17e7dae0..a03cba7bc1a 100644
--- a/lib/private/legacy/ocs.php
+++ b/lib/private/legacy/ocs.php
@@ -37,7 +37,7 @@ class OC_OCS {
$format = \OC::$server->getRequest()->getParam('format', 'xml');
$txt='Invalid query, please check the syntax. API specifications are here:'
.' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n";
- OC_API::respond(new OC_OCS_Result(null, API::RESPOND_UNKNOWN_ERROR, $txt), $format);
+ OC_API::respond(new OC_OCS_Result(null, API::RESPOND_NOT_FOUND, $txt), $format);
}
}