forgejo/routers
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
..
api/v1 Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02: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 an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +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) 2021-07-25 03:59:27 +01:00
init.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00