[Pkg-owncloud-commits] [owncloud] 01/14: Skip headers that can not be split
David Prévot
taffit at moszumanska.debian.org
Wed Mar 11 15:49:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v6.0.7
in repository owncloud.
commit c59b22ab5538bee19070138ef1bcfbe06c58b3f9
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 4e9d51a..6f201d0 100644
--- a/apps/files/ajax/newfile.php
+++ b/apps/files/ajax/newfile.php
@@ -103,6 +103,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