From 124d051cb6efa451a4340f334e9169f5eb868247 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Fri, 13 Nov 2020 13:14:28 -0800 Subject: [PATCH] Fix hashing via bcrypt --- imgboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgboard.php b/imgboard.php index 366f638..30cf1f9 100644 --- a/imgboard.php +++ b/imgboard.php @@ -201,7 +201,7 @@ if (TINYIB_TIMEZONE != '') { date_default_timezone_set(TINYIB_TIMEZONE); } -$bcrypt_salt = '$2y$12$' . str_replace('+', '.', str_pad(substr(base64_encode(TINYIB_TRIPSEED), 0, 22), 22, "=")); +$bcrypt_salt = '$2y$12$' . str_pad(str_replace('=', '/', str_replace('+', '.', substr(base64_encode(TINYIB_TRIPSEED), 0, 22))), 22, '/'); $redirect = true; // Check if the request is to make a post