Return 404 in shareinfo.php when outgoing s2s disabled
This commit is contained in:
parent
e1483f65c3
commit
29c68a4e61
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue