From 18fa4f4745f60ce7b54308cd44ecb209a8301cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Mon, 25 Feb 2013 10:10:57 +0100 Subject: [PATCH] MDL-38154 do not hardcode sha1 hash of empty string --- lib/filestorage/file_storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filestorage/file_storage.php b/lib/filestorage/file_storage.php index de4d0c20de2..09d636a5717 100644 --- a/lib/filestorage/file_storage.php +++ b/lib/filestorage/file_storage.php @@ -1635,7 +1635,7 @@ class file_storage { public function deleted_file_cleanup($contenthash) { global $DB; - if ($contenthash === 'da39a3ee5e6b4b0d3255bfef95601890afd80709') { + if ($contenthash === sha1('')) { // No need to delete empty content file with sha1('') content hash. return; }