Misformatted gravatar URLs #1316

Closed
opened 2025-11-02 03:56:28 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @ethantkoenig on GitHub (Dec 3, 2017).

  • Gitea version (or commit ref): master
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

If gravatar is enabled, but no federated avatar service is used, then the avatar URLs for organizations sometime have misformatted query parameters. This is because we naively append ?s=(size) to the end of avatar URLs, which may already query parameters. I will have a fix soon.

Screenshots

bad_avatar
bad_avatar_url

Originally created by @ethantkoenig on GitHub (Dec 3, 2017). - Gitea version (or commit ref): master - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant ## Description If gravatar is enabled, but no federated avatar service is used, then the avatar URLs for organizations sometime have misformatted query parameters. This is because we naively append `?s=(size)` to the end of avatar URLs, which may already query parameters. I will have a fix soon. ## Screenshots ![bad_avatar](https://user-images.githubusercontent.com/8990880/33521144-956d9456-d77e-11e7-98eb-ce0683245c9d.png) ![bad_avatar_url](https://user-images.githubusercontent.com/8990880/33521145-98469ab0-d77e-11e7-9731-490bcb52eaa7.png)
GiteaMirror added the topic/uitype/bug labels 2025-11-02 03:56:28 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1316