Skip to content

Commit

Permalink
MD5 -> SHA1
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 23, 2014
1 parent 8baa684 commit b27143a
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Factory/BlockCollection.php
Expand Up @@ -54,7 +54,7 @@ public function create(array $apps = array(), $layout = 'portal_layout')
? $registry->listApps()
: array_intersect($registry->listApps(), $apps);
sort($apps);
$sig = hash('md5', serialize(array($apps, $layout)));
$sig = hash('sha1', serialize(array($apps, $layout)));

if (!isset($this->_instances[$sig])) {
if (!($ob = $session->retrieve('horde', 'blocks/' . $sig))) {
Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Factory/Db.php
Expand Up @@ -48,7 +48,7 @@ class Horde_Core_Factory_Db extends Horde_Core_Factory_Base
*/
public function create($app = 'horde', $backend = null)
{
$sig = hash('md5', serialize(array($app, $backend)));
$sig = hash('sha1', serialize(array($app, $backend)));

if (isset($this->_instances[$sig])) {
return $this->_instances[$sig];
Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Factory/DbPear.php
Expand Up @@ -49,7 +49,7 @@ public function create($type = 'rw', $app = 'horde', $dtype = null)
{
global $registry;

$sig = hash('md5', serialize($type . '|' . $app . '|' . $dtype));
$sig = hash('sha1', serialize($type . '|' . $app . '|' . $dtype));

if (isset($this->_instances[$sig])) {
return $this->_instances[$sig];
Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Factory/Ldap.php
Expand Up @@ -48,7 +48,7 @@ class Horde_Core_Factory_Ldap extends Horde_Core_Factory_Base
*/
public function create($app = 'horde', $backend = null)
{
$sig = hash('md5', serialize(array($app, $backend)));
$sig = hash('sha1', serialize(array($app, $backend)));

if (isset($this->_instances[$sig])) {
return $this->_instances[$sig];
Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Factory/Nosql.php
Expand Up @@ -44,7 +44,7 @@ class Horde_Core_Factory_Nosql extends Horde_Core_Factory_Base
*/
public function create($app = 'horde', $backend = null)
{
$sig = hash('md5', serialize(array($app, $backend)));
$sig = hash('sha1', serialize(array($app, $backend)));

if (isset($this->_instances[$sig])) {
return $this->_instances[$sig];
Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Factory/Prefs.php
Expand Up @@ -108,7 +108,7 @@ function_exists($params['user_hook'])) {
'sizecallback' => !is_null($opts['sizecallback'])
));
ksort($sig_opts);
$sig = hash('md5', serialize($sig_opts));
$sig = hash('sha1', serialize($sig_opts));

if (isset($this->_instances[$sig])) {
$this->_instances[$sig]->retrieve($scope);
Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Topbar.php
Expand Up @@ -268,7 +268,7 @@ public function getTree()
*/
public function getHash()
{
return hash('md5', serialize($this->getTree()));
return hash('sha1', serialize($this->getTree()));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Script/File.php
Expand Up @@ -154,7 +154,7 @@ protected function _url($file, $full)
/* Add cache-busting version param. */
return empty($GLOBALS['conf']['cachejsparams']['url_version_param'])
? $url
: $url->add('v', hash('md5', $GLOBALS['registry']->getVersion($this->app)));
: $url->add('v', hash('sha1', $GLOBALS['registry']->getVersion($this->app)));
}

}
4 changes: 2 additions & 2 deletions framework/Core/lib/Horde/Themes/Css.php
Expand Up @@ -103,7 +103,7 @@ public function getStylesheetUrls(array $opts = array())
$url = Horde::url($file['uri'], true, -1);
$css_out[] = (is_null($file['app']) || empty($conf['cachecssparams']['url_version_param']))
? $url
: $url->add('v', hash('md5', $registry->getVersion($file['app'])));
: $url->add('v', hash('sha1', $registry->getVersion($file['app'])));
}
return $css_out;
}
Expand All @@ -115,7 +115,7 @@ public function getStylesheetUrls(array $opts = array())
}

$out = '';
$sig = hash('md5', serialize($css) . $this->_cacheid);
$sig = hash('sha1', serialize($css) . $this->_cacheid);

switch ($cache_type) {
case 'filesystem':
Expand Down

0 comments on commit b27143a

Please sign in to comment.