1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-18 00:56:42 +01:00

Hardened secure tripcode?

This commit is contained in:
Michael Foster 2013-09-23 12:41:27 +10:00
parent f52995498a
commit 702c82c71f

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}"];