應該是受到 utf-8 編碼的影響, 產生了系統不允許的字元. 以下的修改, 提供您參考:
# 讓他不要去判斷 UTF-8的會員帳號
# #-----[ OPEN ]-----
# includes/functions_validate.php
# #-----[ FIND ]-----
# 代碼:
// Don't allow " and ALT-255 in username. if (strstr($username, '"') strstr($username, '"') strstr($username, chr(160))) { return array('error' => true, 'error_msg' => $lang['Username_invalid']); }
# #-----[ REPLACE WITH ]-----
# 代碼:
/*// Don't allow " and ALT-255 in username. if (strstr($username, '"') strstr($username, '"') strstr($username, chr(160))) { return array('error' => true, 'error_msg' => $lang['Username_invalid']); }*/
# #-----[ SAVE & CLOSE ]-----
# #EoM ps. 尚不明白, 如此做, 有無安全上的缺失, 請小心為之.
# 讓他不要去判斷 UTF-8的會員帳號
# #-----[ OPEN ]-----
# includes/functions_validate.php
# #-----[ FIND ]-----
# 代碼:
// Don't allow " and ALT-255 in username. if (strstr($username, '"') strstr($username, '"') strstr($username, chr(160))) { return array('error' => true, 'error_msg' => $lang['Username_invalid']); }
# #-----[ REPLACE WITH ]-----
# 代碼:
/*// Don't allow " and ALT-255 in username. if (strstr($username, '"') strstr($username, '"') strstr($username, chr(160))) { return array('error' => true, 'error_msg' => $lang['Username_invalid']); }*/
# #-----[ SAVE & CLOSE ]-----
# #EoM ps. 尚不明白, 如此做, 有無安全上的缺失, 請小心為之.
全站熱搜