mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-38154 do not hardcode sha1 hash of empty string
This commit is contained in:
parent
e029dff4cd
commit
18fa4f4745
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user