summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-07-26 17:41:57 +0200
committerBart Visscher <bartv@thisnet.nl>2012-07-26 17:41:57 +0200
commit3725cd079b96dff489d60aadfbd585045af033f8 (patch)
tree73390991b46734467bed47d07b5327fd007768ca /lib
parentebe4d1f0ee7b7835dd55950c25c768f547ac0fa6 (diff)
downloadnextcloud-server-3725cd079b96dff489d60aadfbd585045af033f8.tar.gz
nextcloud-server-3725cd079b96dff489d60aadfbd585045af033f8.zip
Fix oc-1362: post_rename has no path param but newpath and oldpath
Diffstat (limited to 'lib')
-rw-r--r--lib/filesystem.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index d88b30c2f68..530d50139b4 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -474,7 +474,11 @@ class OC_Filesystem{
}
static public function removeETagHook($params) {
- $path=$params['path'];
+ if (isset($params['path'])) {
+ $path=$params['path'];
+ } else {
+ $path=$params['oldpath'];
+ }
OC_Connector_Sabre_Node::removeETagPropertyForPath($path);
OC_Connector_Sabre_Node::removeETagPropertyForPath(dirname($path));
}