summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-11-02 09:01:55 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-11-02 09:01:55 +0100
commit61a1fc91599b372ed6c1c09c8b85651b89221011 (patch)
treed89b3287c8d442fec306797dbb654d8829df877b /lib
parentf71f985427f77b9eaefb399ef662e27e4fc3810b (diff)
parenta68d9159bd721d3fbfd70da8364b79bc4c2faf29 (diff)
downloadnextcloud-server-61a1fc91599b372ed6c1c09c8b85651b89221011.tar.gz
nextcloud-server-61a1fc91599b372ed6c1c09c8b85651b89221011.zip
Merge pull request #19773 from owncloud/stable8.1-proppatch-lastmodified
[stable8.1] Fix mtime PROPPATCH to be "lastmodified" instead of "getlastmodified"
Diffstat (limited to 'lib')
-rw-r--r--lib/private/connector/sabre/filesplugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/connector/sabre/filesplugin.php b/lib/private/connector/sabre/filesplugin.php
index 608e8cd9017..714b4f89335 100644
--- a/lib/private/connector/sabre/filesplugin.php
+++ b/lib/private/connector/sabre/filesplugin.php
@@ -41,7 +41,7 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
const DOWNLOADURL_PROPERTYNAME = '{http://owncloud.org/ns}downloadURL';
const SIZE_PROPERTYNAME = '{http://owncloud.org/ns}size';
const GETETAG_PROPERTYNAME = '{DAV:}getetag';
- const GETLASTMODIFIED_PROPERTYNAME = '{DAV:}getlastmodified';
+ const LASTMODIFIED_PROPERTYNAME = '{DAV:}lastmodified';
/**
* Reference to main server object
@@ -82,7 +82,7 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
$server->protectedProperties[] = self::DOWNLOADURL_PROPERTYNAME;
// normally these cannot be changed (RFC4918), but we want them modifiable through PROPPATCH
- $allowedProperties = ['{DAV:}getetag', '{DAV:}getlastmodified'];
+ $allowedProperties = ['{DAV:}getetag'];
$server->protectedProperties = array_diff($server->protectedProperties, $allowedProperties);
$this->server = $server;
@@ -164,7 +164,7 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
* @return void
*/
public function handleUpdateProperties($path, PropPatch $propPatch) {
- $propPatch->handle(self::GETLASTMODIFIED_PROPERTYNAME, function($time) use ($path) {
+ $propPatch->handle(self::LASTMODIFIED_PROPERTYNAME, function($time) use ($path) {
if (empty($time)) {
return false;
}