[Pkg-owncloud-commits] [php-sabredav] 28/75: Compute ETag with a SHA-1.
David Prévot
taffit at moszumanska.debian.org
Thu Feb 26 18:51:51 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 6de633d78ded24a0a162f1eb4ffa207f4605a65a
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Thu Jan 8 10:09:45 2015 +0100
Compute ETag with a SHA-1.
---
lib/DAV/FS/Node.php | 2 --
lib/DAV/SimpleFile.php | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/DAV/FS/Node.php b/lib/DAV/FS/Node.php
index b486666..31d9a14 100644
--- a/lib/DAV/FS/Node.php
+++ b/lib/DAV/FS/Node.php
@@ -67,8 +67,6 @@ abstract class Node implements DAV\INode {
}
-
-
/**
* Returns the last modification time, as a unix timestamp
*
diff --git a/lib/DAV/SimpleFile.php b/lib/DAV/SimpleFile.php
index aed088f..73c3583 100644
--- a/lib/DAV/SimpleFile.php
+++ b/lib/DAV/SimpleFile.php
@@ -102,7 +102,7 @@ class SimpleFile extends File {
*/
function getETag() {
- return '"' . md5($this->contents) . '"';
+ return '"' . sha1($this->contents) . '"';
}
--
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