mirror of
https://github.com/friendica/friendica
synced 2024-11-15 07:17:39 +01:00
Update src/Model/User.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
d66f1e30ae
commit
e2d93b57da
|
@ -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