]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Model/User.php
authorvery-ape <84299128+very-ape@users.noreply.github.com>
Thu, 20 May 2021 18:54:30 +0000 (11:54 -0700)
committerGitHub <noreply@github.com>
Thu, 20 May 2021 18:54:30 +0000 (11:54 -0700)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Model/User.php

index a0a40069f9a2c76308671da9b882b702363174eb..38a22f70f9a72e944d1a0eb18c7c94d43afc091b 100644 (file)
@@ -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;
                        }