Merge pull request #16610 from owncloud/s2s-shareinforeturn404whendisabled
Return 404 in shareinfo.php when outgoing s2s disabled
This commit is contained in:
commit
cca7d8d561
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue