Skip to content

Commit

Permalink
Ensure name doesn't contain any funky content.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Jun 2, 2024
1 parent 8808c3c commit efab082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Domain/Auth/Services/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function setUserSession(mixed $user, bool $isLdap = false)
$_SESSION['userdata'] = self::dispatch_filter('user_session_vars', [
'role' => $this->role,
'id' => $this->userId,
'name' => $this->name,
'name' => substr(strip_tags($this->name), 0, 12),
'profileId' => $this->profileId,
'mail' => $this->mail,
'clientId' => $this->clientId,
Expand Down

0 comments on commit efab082

Please sign in to comment.