Skip to content

Commit c9352bf

Browse files
Would have sworn I replaced the adler32 algorithm with md5 already..
1 parent 16df05c commit c9352bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

File.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,7 @@ protected function _path($id, $parts = false)
396396
$root = $this->_options['cache_dir'];
397397
$prefix = $this->_options['file_name_prefix'];
398398
if ($this->_options['hashed_directory_level']>0) {
399-
$hash = hash('adler32', $id);
400-
$root = $root . $prefix . '--' . substr($hash, -$this->_options['hashed_directory_level']) . DIRECTORY_SEPARATOR;
399+
$root .= $prefix . '--' . substr(md5($id), -$this->_options['hashed_directory_level']) . DIRECTORY_SEPARATOR;
401400
$partsArray[] = $root;
402401
}
403402
if ($parts) {

0 commit comments

Comments
 (0)