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:
parent
f52995498a
commit
702c82c71f
@ -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}"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user