Browse Source

Hardened secure tripcode?

pull/40/head
Michael Foster 11 years ago
parent
commit
699279d84a
  1. 2
      inc/functions.php

2
inc/functions.php

@ -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…
Cancel
Save