From 340e99dad29596f94782c37fb75f484e3c2da113 Mon Sep 17 00:00:00 2001 From: afornerot Date: Sun, 17 Nov 2024 12:53:35 +0100 Subject: [PATCH] svg --- src/Entity/User.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Entity/User.php b/src/Entity/User.php index 33df0c9..37584cd 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -433,6 +433,7 @@ class User implements UserInterface, \Serializable { $this->pseudo = $pseudo?$pseudo:$this->username; $pseudo=strtolower($this->pseudo); + $pseudo=str_replace("'","",$pseudo); if($pseudo=="admin"||$pseudo=="user"||$pseudo=="feed"||$pseudo=="_uploader") $pseudo.="home"; $this->slug = $pseudo; return $this;