Browse code

user/editbio.php: use eFiction-specific function instead of hardcoded mysqli function for fetching a row to check password length

Clarissa Walker authored on 2026/09/27 20:54:59
Showing 1 changed files
... ...
@@ -54,7 +54,7 @@ function random_string ($charset_string, $length)
54 54
 	// all MD5 hashes are 32 exact characters long, hexadecimal, 0-9 and a-f random
55 55
 	// this set is a bit cursed... but it works
56 56
 	$pwdcharlengthquery = dbquery("SELECT CHAR_LENGTH(password) FROM ".TABLEPREFIX."fanfiction_authors WHERE uid = ".USERUID.";");
57
-	$pwdlengthfetch = mysqli_fetch_row($pwdcharlengthquery);
57
+	$pwdlengthfetch = dbrow($pwdcharlengthquery);
58 58
 	$pwdlengthstring = end($pwdlengthfetch);
59 59
 	$pwdcheck = (int) $pwdlengthstring;
60 60
 	if ($pwdcheck == 32) $output .= "<center>"._INSECUREPWD."</center><br>";