Return 404 in shareinfo.php when outgoing s2s disabled

This commit is contained in:
Vincent Petry 2015-05-28 17:22:15 +02:00
parent e1483f65c3
commit 29c68a4e61

View file

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