0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-27 10:54:44 +01:00
gitea/routers/web/repo
zeripath fd15fd4c67
Handle too long PR titles correctly (#16517)
The CompareAndPullRequestPost handler for POST to /compare
incorrectly handles returning errors to the user. For a start
it does not set the necessary markers to switch SimpleMDE
but it also does not immediately return to the form.

This PR fixes this by setting the appropriate values, fixing
the templates and preventing the suggestion of a too long
title.

Fix #16507

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-07-25 03:59:27 +01:00
..
activity.go
attachment.go
blame.go
branch.go
commit.go
compare.go Handle too long PR titles correctly (#16517) 2021-07-25 03:59:27 +01:00
download.go
editor_test.go
editor.go
http_test.go
http.go
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go
projects_test.go
projects.go
pull_review.go
pull.go Handle too long PR titles correctly (#16517) 2021-07-25 03:59:27 +01:00
release_test.go
release.go
repo.go
search.go
setting_protected_branch.go
setting.go
settings_test.go
tag.go
topic.go
view.go
webhook.go
wiki_test.go
wiki.go