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
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski authored and backportbot[bot] committed Apr 11, 2024
1 parent 504f71e commit eac2210
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 eac2210

Please sign in to comment.