From: Tim Düsterhus Date: Fri, 8 Mar 2019 16:35:32 +0000 (+0100) Subject: Use binary output from `hash()` X-Git-Tag: 5.2.0_Alpha_1~228^2~1^2^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1db53093289330d114d96db3acc0764eb6b05e27;p=GitHub%2FWoltLab%2FWCF.git Use binary output from `hash()` Co-Authored-By: dtdesign --- diff --git a/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php b/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php index 8adcff9634..dac70e12de 100644 --- a/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php +++ b/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php @@ -73,7 +73,7 @@ class BlacklistEntry extends DatabaseObject { } protected static function getHash($string) { - return hex2bin(hash('sha256', $string)); + return hash('sha256', $string, true); } protected static function isMatch($type, $occurrences) {