mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
Update src/Model/User.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
d66f1e30ae
commit
e2d93b57da
1 changed files with 1 additions and 1 deletions
|
@ -530,7 +530,7 @@ class User
|
|||
// exactly what will happen here. Creating a numeric username would create
|
||||
// abiguity with user IDs, possibly opening up an attack vector.
|
||||
// So let's be very careful about that.
|
||||
if (empty($username) || is_numeric($user_info) || is_numeric($user_info['nickname'] ?? '')) {
|
||||
if (empty($username) || is_numeric($username)) {
|
||||
throw $e;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue