[Pkg-owncloud-commits] [php-sabredav] 23/75: ETag is based on the file's mtime.

David Prévot taffit at moszumanska.debian.org
Thu Feb 26 18:51:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit b68d8edd61ebd67edae626c9a7a25dd87d0f5374
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Fri Nov 21 11:41:30 2014 +0100

    ETag is based on the file's mtime.
---
 lib/DAV/FSExt/File.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/DAV/FSExt/File.php b/lib/DAV/FSExt/File.php
index 79c7da2..0ecd4be 100644
--- a/lib/DAV/FSExt/File.php
+++ b/lib/DAV/FSExt/File.php
@@ -112,7 +112,7 @@ class File extends Node implements DAV\PartialUpdate\IPatchSupport {
      */
     function getETag() {
 
-        return '"' . md5_file($this->path). '"';
+        return '"' . sha1(filemtime($this->path)). '"';
 
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list