This commit is contained in:
afornerot 2024-11-17 12:53:35 +01:00
parent e26fdb13f1
commit 340e99dad2
1 changed files with 1 additions and 0 deletions

View File

@ -433,6 +433,7 @@ class User implements UserInterface, \Serializable
{ {
$this->pseudo = $pseudo?$pseudo:$this->username; $this->pseudo = $pseudo?$pseudo:$this->username;
$pseudo=strtolower($this->pseudo); $pseudo=strtolower($this->pseudo);
$pseudo=str_replace("'","",$pseudo);
if($pseudo=="admin"||$pseudo=="user"||$pseudo=="feed"||$pseudo=="_uploader") $pseudo.="home"; if($pseudo=="admin"||$pseudo=="user"||$pseudo=="feed"||$pseudo=="_uploader") $pseudo.="home";
$this->slug = $pseudo; $this->slug = $pseudo;
return $this; return $this;