diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-05-28 17:22:15 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-05-28 17:59:43 +0200 |
commit | 29c68a4e618bfe59f843ae72b435757a0f072624 (patch) | |
tree | 6f84646a04e67b32f195579c0281c27fd01f14da /apps/files_sharing/ajax/shareinfo.php | |
parent | e1483f65c3cd800f90e962764b06bf2379ca4432 (diff) | |
download | nextcloud-server-29c68a4e618bfe59f843ae72b435757a0f072624.tar.gz nextcloud-server-29c68a4e618bfe59f843ae72b435757a0f072624.zip |
Return 404 in shareinfo.php when outgoing s2s disabled
Diffstat (limited to 'apps/files_sharing/ajax/shareinfo.php')
-rw-r--r-- | apps/files_sharing/ajax/shareinfo.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/ajax/shareinfo.php b/apps/files_sharing/ajax/shareinfo.php index 5a20ebcb061..b2f88265ca1 100644 --- a/apps/files_sharing/ajax/shareinfo.php +++ b/apps/files_sharing/ajax/shareinfo.php @@ -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; |