Skip to content

Commit

Permalink
Merge pull request #1489 from nextcloud/fix-status-code-when-app-is-d…
Browse files Browse the repository at this point in the history
…isabled

Return 404 on v2.php when the app is disabled
  • Loading branch information
MorrisJobke committed Sep 27, 2016
2 parents 810f72d + 78210c8 commit 6a3e0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/legacy/ocs.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function notFound() {
$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);
}

}

0 comments on commit 6a3e0f3

Please sign in to comment.