[Pkg-owncloud-commits] [owncloud] 167/457: Return 404 in shareinfo.php when outgoing s2s disabled

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:05:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 29c68a4e618bfe59f843ae72b435757a0f072624
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Thu May 28 17:22:15 2015 +0200

    Return 404 in shareinfo.php when outgoing s2s disabled
---
 apps/files_sharing/ajax/shareinfo.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/apps/files_sharing/ajax/shareinfo.php b/apps/files_sharing/ajax/shareinfo.php
index 5a20ebc..b2f8826 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list