forgejo/routers/web
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
..
admin Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
dev Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
events Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
explore Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
org Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repo Handle too long PR titles correctly (#16517) 2021-07-25 03:59:27 +01:00
user Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
base.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 2021-06-09 19:53:16 +02:00
goget.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
home.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
metrics.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
swagger_json.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
web.go Fix issue pasted image missing if no release permission (#16520) 2021-07-23 14:08:04 -04:00