From 78210c83002fce9c0ea71c86409e46a46ba5d759 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 22 Sep 2016 12:18:40 +0200 Subject: [PATCH] Return 404 on v2.php when the app is disabled Signed-off-by: Joas Schilling --- lib/private/legacy/ocs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/legacy/ocs.php b/lib/private/legacy/ocs.php index 2ed17e7dae..a03cba7bc1 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); } }