zikula/zikulahash.patch
David Nalley a702b0afbf - upgraded to 1.1.2 to match upstream bug 514301
- changed php version requirements to 5.1.2 to remove bundling of sha256
    library
- added symlinks silencing per ian wellers bug 511137
- silenced selinux problems
- Added requires for php-Smarty, php-adodb, php-mcrypt
- Deleted unused JSON, encrypytion, and hashes libraries which were bundled
    for 493237
2009-08-24 00:21:32 +00:00

15 lines
729 B
Diff

diff -rupN old/includes/DataUtil.class.php new/includes/DataUtil.class.php
--- includes/DataUtil.class.php 2008-12-08 13:31:42.000000000 -0500
+++ includes/DataUtil.class.php 2009-08-23 19:48:25.169290742 -0400
@@ -448,9 +448,9 @@ class DataUtil
return bin2hex(mhash(MHASH_SHA256, $string));
} else {
if (!class_exists('SHA256')) {
- Loader::requireOnce('includes/classes/hashes/sha256.class.php');
+ # Loader::requireOnce('includes/classes/hashes/sha256.class.php');
}
- return SHA256::hash($string);
+ return hash('sha256', $string);
}
}
else if ($type == 'md5') {