]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dav: don't overwrite etag from filecache with old etag from properties table
authorRobin Appelman <icewind@owncloud.com>
Sat, 2 Feb 2013 14:44:05 +0000 (15:44 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sat, 2 Feb 2013 14:44:05 +0000 (15:44 +0100)
lib/connector/sabre/directory.php

index a72015793668c9716f8998a68506db7a9014b835..b210602bbf48f2a5cfd1697af349fec0713c94c0 100644 (file)
@@ -138,7 +138,9 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
                                        $propertypath = $row['propertypath'];
                                        $propertyname = $row['propertyname'];
                                        $propertyvalue = $row['propertyvalue'];
-                                       $properties[$propertypath][$propertyname] = $propertyvalue;
+                                       if($propertyname !== self::GETETAG_PROPERTYNAME) {
+                                               $properties[$propertypath][$propertyname] = $propertyvalue;
+                                       }
                                }
                        }
                }