Merge pull request #16610 from owncloud/s2s-shareinforeturn404whendisabled

Return 404 in shareinfo.php when outgoing s2s disabled
This commit is contained in:
Vincent Petry 2015-05-28 20:03:18 +02:00
commit cca7d8d561
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ if (!isset($_GET['t'])) {
exit;
}
if (OCA\Files_Sharing\Helper::isOutgoingServer2serverShareEnabled() === false) {
\OC_Response::setStatus(404); // 404 not found
exit;
}
$token = $_GET['t'];
$password = null;