- they could break accounts in existing installations
- strtolower can corrupt strings in multibyte languages
Is it really a problem that usernames are case sensitive on PostgreSQL?
/// Creates a bare-bones user record
global $REMOTE_ADDR, $CFG;
- $username = strtolower($username);
-
if (function_exists(auth_get_userinfo)) {
if ($newinfo = auth_get_userinfo($username)) {
foreach ($newinfo as $key => $value){
/// If data submitted, then process and store.
if ($usernew = data_submitted()) {
- $usernew->username = strtolower($usernew->username);
$usernew->firstname = strip_tags($usernew->firstname);
$usernew->lastname = strip_tags($usernew->lastname);