Skip to content

Commit

Permalink
fix: Sanitize forward slashes from name before generating url
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianKrupinski committed Apr 11, 2024
1 parent 62d7088 commit adfebc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dashboard/MailWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function getItems(string $userId, ?string $since = null, int $limit = 7):
$this->urlGenerator->linkToRoute('core.GuestAvatar.getAvatar', [
'guestName' => $firstFrom
? ($firstFrom->getLabel()
? $firstFrom->getLabel()
? str_replace('/', '-', $firstFrom->getLabel())
: $firstFrom->getEmail())
: '',
'size' => 44,
Expand Down

0 comments on commit adfebc1

Please sign in to comment.