incorrect redirect when proposing file change with # in branch name #6697

Closed
opened 2025-11-02 07:04:06 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @jpraet on GitHub (Jan 16, 2021).

Description

When modifying a file through the web UI via a pull request, if you have a # in the branch name you get a 404.

Screenshots

image

image

The # should get URL encoded:

image

Originally created by @jpraet on GitHub (Jan 16, 2021). - Gitea version (or commit ref): 1.13.1 - Can you reproduce the bug at https://try.gitea.io: - [X] Yes ## Description When modifying a file through the web UI via a pull request, if you have a `#` in the branch name you get a 404. ## Screenshots ![image](https://user-images.githubusercontent.com/2212615/104809703-69471b00-57ef-11eb-8d56-ffb47fc06a3e.png) ![image](https://user-images.githubusercontent.com/2212615/104809772-dbb7fb00-57ef-11eb-9de8-e79e030c4f86.png) The `#` should get URL encoded: ![image](https://user-images.githubusercontent.com/2212615/104809791-05712200-57f0-11eb-8e31-f536d46f8af4.png)
GiteaMirror added the type/bug label 2025-11-02 07:04:06 -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#6697