[Pkg-owncloud-commits] [owncloud] 07/121: close session right before the download starts - this enables parallel downloads

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 16:44:25 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit 8f8f3d1e43f3e8e4edc9b2a76cf7ae6dc5407e87
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Tue Aug 5 11:21:42 2014 +0200

    close session right before the download starts - this enables parallel downloads
---
 apps/files_sharing/public.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index ec7c80f..e64a1f7 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -100,6 +100,7 @@ if (isset($path)) {
 	$file = basename($path);
 	// Download the file
 	if (isset($_GET['download'])) {
+		\OC::$server->getSession()->close();
 		if (isset($_GET['files'])) { // download selected files
 			$files = urldecode($_GET['files']);
 			$files_list = json_decode($files);

-- 
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