summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/shareinfo.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-05-28 17:22:15 +0200
committerVincent Petry <pvince81@owncloud.com>2015-05-28 17:59:43 +0200
commit29c68a4e618bfe59f843ae72b435757a0f072624 (patch)
tree6f84646a04e67b32f195579c0281c27fd01f14da /apps/files_sharing/ajax/shareinfo.php
parente1483f65c3cd800f90e962764b06bf2379ca4432 (diff)
downloadnextcloud-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.php5
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;