[Pkg-owncloud-commits] [php-sabredav] 30/66: Fix issue #178
David Prévot
taffit at moszumanska.debian.org
Sat Jan 18 20:08:20 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit 866f2b948817738d1fe6572e0f88f00d9e46d989
Author: Daniel Risacher <drisacher at gmail.com>
Date: Fri Dec 27 16:01:03 2013 -0500
Fix issue #178
This change allows a lock timout header to have multiple values, per RFC 4918 section 10.7.
All but the first value are ignored.
---
lib/Sabre/DAV/Locks/Plugin.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Sabre/DAV/Locks/Plugin.php b/lib/Sabre/DAV/Locks/Plugin.php
index 2e3eb3e..6a9e3d9 100644
--- a/lib/Sabre/DAV/Locks/Plugin.php
+++ b/lib/Sabre/DAV/Locks/Plugin.php
@@ -378,7 +378,7 @@ class Plugin extends DAV\ServerPlugin {
if ($header) {
if (stripos($header,'second-')===0) $header = (int)(substr($header,7));
- else if (strtolower($header)=='infinite') $header = LockInfo::TIMEOUT_INFINITE;
+ else if (stripos($header,'infinite')===0) $header = LockInfo::TIMEOUT_INFINITE;
else throw new DAV\Exception\BadRequest('Invalid HTTP timeout header');
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list