Author: ts
Date: Wed Sep 26 03:14:20 2007
New Revision: 6279
Log:
- Fixed unwanted behaviour in DELETE and therefore MOVE.
# Thanks litmus. Attention, lots of test cases on the way...
Modified:
trunk/Webdav/src/backend/memory.php
Modified: trunk/Webdav/src/backend/memory.php
==============================================================================
--- trunk/Webdav/src/backend/memory.php [iso-8859-1] (original)
+++ trunk/Webdav/src/backend/memory.php [iso-8859-1] Wed Sep 26 03:14:20 2007
@@ -595,7 +595,7 @@
// Remove all content nodes starting with requested path
foreach ( $this->content as $name => $content )
{
- if ( strpos( $name, $path ) === 0 )
+ if ( strpos( $name, $path ) === 0 && ( substr( $name, strlen(
$path ), 1 ) === '/' || $name === $path ) )
{
// Check if we want to cause some errors here.
if ( $this->options->failingOperations &
ezcWebdavMemoryBackendOptions::REQUEST_DELETE && preg_match(
$this->options->failForRegexp, $name ) > 0 )
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components