mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-38154 do not hardcode sha1 hash of empty string
This commit is contained in:
parent
e029dff4cd
commit
18fa4f4745
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue