-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Bad Request: invalid CSRF token" when Updating branch by merge #23787
Comments
Whether you stay the page for a long time and click the button directly when you back? |
Happens in either case |
Go to your Site Admin page, do you see any error/warning message on page? |
OK, I understand the problem now. A regression of #22683 |
For completeness: Nothing in the site admin pages. |
#23790 will fix the problem. Thank you for your report. |
…23790) Fix regression of #22683 , it didn't pass all variables into sub-template. Close #23787 After the fix, all links and the form are correct.  
…o-gitea#23790) Fix regression of go-gitea#22683 , it didn't pass all variables into sub-template. Close go-gitea#23787 After the fix, all links and the form are correct.   # Conflicts: # templates/repo/issue/view_content/update_branch_by_merge.tmpl
Description
When clicking the "Update branch by merge" button in a pull request, I get dropped back to the main gitea page with a "Bad Request: invalid CSRF token" error message.
Gitea Version
1.19.0 as well as 1.19.0+28-g81a995cd8
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
2.25.1
Operating System
Ubuntu Linux 20.04.6
How are you running Gitea?
Installed from binaries with systemd service behind nginx reverse proxy.
Nginx-Config is the same as given in the docs.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: