forked from gitea/gitea
1
0
Fork 0
gitea/routers
zeripath 693275455e
Handle too long PR titles correctly (#16517) (#16549)
Backport #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-26 17:49:48 +02:00
..
api/v1 Return updated repository when changing repository using API (#16420) 2021-07-13 20:31:59 +01:00
common Support custom mime type mapping for text files (#16304) 2021-06-30 17:31:54 -04:00
install just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
private Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
utils just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
web Handle too long PR titles correctly (#16517) (#16549) 2021-07-26 17:49:48 +02:00
init.go Add LRU mem cache implementation (#16226) 2021-07-10 23:54:15 +02:00