[Pkg-owncloud-commits] [owncloud] 06/90: Skip headers that can not be split

David Prévot taffit at moszumanska.debian.org
Fri Feb 6 21:10:39 UTC 2015


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

taffit pushed a commit to branch master
in repository owncloud.

commit 60b2dd6ab4870a9ea331303afb62294451cb7e43
Author: Victor Dubiniuk <victor.dubiniuk at gmail.com>
Date:   Mon Dec 8 23:43:43 2014 +0300

    Skip headers that can not be split
---
 apps/files/ajax/newfile.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php
index 1b97178..7254089 100644
--- a/apps/files/ajax/newfile.php
+++ b/apps/files/ajax/newfile.php
@@ -119,6 +119,9 @@ if($source) {
 			$freeSpace = $storageStats['freeSpace'];
 
 			foreach($meta['wrapper_data'] as $header) {
+				if (strpos($header, ':') === false){
+					continue;
+				}
 				list($name, $value) = explode(':', $header);
 				if ('content-length' === strtolower(trim($name))) {
 					$length = (int) trim($value);

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