gitea/modules
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
..
analyze
auth Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
avatar
base
cache Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
charset
context Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
convert
cron Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
csv
doctor Restore creation of git-daemon-export-ok files (#16508) 2021-07-22 12:53:54 +01:00
emoji
eventsource Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
generate switch to maintained lib (#16532) 2021-07-24 13:00:41 +02:00
git Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) 2021-07-20 20:23:01 +03:00
gitgraph
graceful
hcaptcha
highlight
httpcache
httplib Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
indexer Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
json Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
lfs Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
log Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
markup modules/markup/markdown: fix dropped test error (#16438) 2021-07-18 14:09:34 +02:00
matchlist
metrics
migrations
nosql
notification Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
options
password
pprof
private Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
process
public
queue Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
recaptcha Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
references
repofiles
repository Fix archive error when rename repo or user (#16399) 2021-07-13 14:16:31 +02:00
secret
session Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
setting Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
ssh
storage Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
structs Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
svg
sync
task Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
templates Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
test
timeutil
translation
typesniffer
upload
uri
user
util Handle too long PR titles correctly (#16517) 2021-07-25 03:59:27 +01:00
validation
web Restore CORS on git smart http protocol (#16496) 2021-07-21 11:32:35 +08:00