Skip to content

Commit

Permalink
Use SHA-1 for hash key
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 30, 2013
1 parent 951c330 commit 1979d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Autoloader_Cache/lib/Horde/Autoloader/Cache.php
Expand Up @@ -104,7 +104,7 @@ public function __construct()
$this->_cachetype = self::EACCELERATOR;
} elseif (($tempdir = sys_get_temp_dir()) && is_readable($tempdir)) {
$this->_tempdir = $tempdir;
$this->_cachekey = hash('md5', $this->_cachekey);
$this->_cachekey = hash('sha1', $this->_cachekey);
if (($data = @file_get_contents($tempdir . '/' . $this->_cachekey)) === false) {
unlink($tempdir . '/' . $this->_cachekey);
}
Expand Down

0 comments on commit 1979d2d

Please sign in to comment.