cvs: pear /HTTP_WebDAV_Server/Server Filesystem.php

From: Date: Sat, 04 Mar 2006 13:50:29 +0000
Subject: cvs: pear /HTTP_WebDAV_Server/Server Filesystem.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38906@lists.php.net to get a copy of this message
hholzgra Sat Mar 4 13:50:29 2006 UTC Modified files: /pear/HTTP_WebDAV_Server/Server Filesystem.php Log: make locking of directory trees fail hard for now, recursive locking is not really implemented so it's better not to pretend that it works http://cvs.php.net/viewcvs.cgi/pear/HTTP_WebDAV_Server/Server/Filesystem.php?r1=1.28&r2=1.29&diff_format=u Index: pear/HTTP_WebDAV_Server/Server/Filesystem.php diff -u pear/HTTP_WebDAV_Server/Server/Filesystem.php:1.28 pear/HTTP_WebDAV_Server/Server/Filesystem.php:1.29 --- pear/HTTP_WebDAV_Server/Server/Filesystem.php:1.28 Sat Mar 4 12:39:54 2006 +++ pear/HTTP_WebDAV_Server/Server/Filesystem.php Sat Mar 4 13:50:29 2006 @@ -655,6 +655,14 @@ */ function LOCK(&$options) { + // get absolute fs path to requested resource + $fspath = $this->base . $options["path"]; + + // TODO recursive locks on directories not supported yet + if (is_dir($fspath) && !empty($options["depth"])) { + return "409 Conflict"; + } + $options["timeout"] = time()+300; // 5min. hardcoded if (isset($options["update"])) { // Lock Update

« previous php.pear.cvs (#38906) next »