Skip to content

Commit

Permalink
Merge pull request #9556 from nextcloud/backport/9553/stable3.5
Browse files Browse the repository at this point in the history
[stable3.5] fix: Sanitize forward slashes from name before generating url
  • Loading branch information
SebastianKrupinski authored Jun 1, 2024
2 parents 5e4a175 + e1cb022 commit 4487913
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 4487913

Please sign in to comment.