Hardened secure tripcode?

This commit is contained in:
Michael Foster 2013-09-23 12:41:27 +10:00
parent d234c014f0
commit 699279d84a

View File

@ -1973,7 +1973,7 @@ function generate_tripcode($name) {
if (isset($config['custom_tripcode']["##{$trip}"]))
$trip = $config['custom_tripcode']["##{$trip}"];
else
$trip = '!!' . substr(crypt($trip, $config['secure_trip_salt']), -10);
$trip = '!!' . substr(crypt($trip, $salt . $config['secure_trip_salt']), -10);
} else {
if (isset($config['custom_tripcode']["#{$trip}"]))
$trip = $config['custom_tripcode']["#{$trip}"];