diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-22 12:18:40 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-22 12:18:40 +0200 |
commit | 78210c83002fce9c0ea71c86409e46a46ba5d759 (patch) | |
tree | 7a83932ad17c8f09a291360d09b7820ddfb19d31 | |
parent | 26f1745fb97343c24a470505e921790ecba0cc3d (diff) | |
download | nextcloud-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>
-rw-r--r-- | lib/private/legacy/ocs.php | 2 |
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); } } |