diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-23 12:41:27 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-23 12:41:27 +1000 |
| commit | 699279d84aab16594505aa394fc4c9ed22cbba11 (patch) | |
| tree | 7f59b6ace01919b3bb69ff4dd4514b2a44a8e082 /inc/functions.php | |
| parent | d234c014f06955974e10a25b1199f22c226e7808 (diff) | |
Hardened secure tripcode?
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index 078911ea..02665952 100644 --- a/inc/functions.php +++ b/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}"]; |
