You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules
zeripath 320031fce6
Handle more pathological branch and tag names (#11843) (#11863)
Backport #11843

It's possible to push quite pathological appearing branch names to gitea
using git push gitea reasonable-branch:refs/heads/-- at which point
large parts of the UI will break. Similarly you can git push origin
reasonable-tag:refs/tags/-- which wil return an error.

This PR fixes the problems these cause. It also changes the code from
creating branches to pushing to ensure that branch restoration has to
pass hooks.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
5 years ago
..
analyze Exclude generated files from language statistics (#11653) (#11670) 5 years ago
auth Refactor Cron and merge dashboard tasks (#10745) 5 years ago
avatar Improve handling of non-square avatars (#7025) 6 years ago
base Add gitea-vet (#10948) 5 years ago
cache make avatar lookup occur at image request (#10540) 5 years ago
charset deps: update and fix chardet import (#9351) 5 years ago
context [API] on 500 error only show message if gitea in dev mode (#11641) (#11753) 5 years ago
convert Honor DEFAULT_PAGING_NUM for API (#11805) (#11813) 5 years ago
cron Refactor Cron and merge dashboard tasks (#10745) 5 years ago
emoji Update emoji dataset with skin tone variants (#11678) (#11763) 5 years ago
eventsource Add EventSource support (#11235) 5 years ago
generate Add gitea-vet (#10948) 5 years ago
git Handle more pathological branch and tag names (#11843) (#11863) 5 years ago
gitgraph Move git graph from models to modules/graph (#9027) 5 years ago
graceful Handle panics that percolate up to the graceful module (#11291) 5 years ago
highlight Add a lot of extension to language mappings for syntax highlights (#7741) 6 years ago
httplib Add golangci (#6418) 6 years ago
indexer Change language statistics to save size instead of percentage (#11681) (#11690) 5 years ago
lfs Support Range header end in lfs (#11314) 5 years ago
log modules/log: remove noop written variables (#10182) 5 years ago
markup Update emoji regex (#11584) (#11679) 5 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations Refactor Cron and merge dashboard tasks (#10745) 5 years ago
notification Add NotifySyncPushCommits to indexer notifier (#11309) 5 years ago
options Rename scripts to build and add revive command as a new build tool command (#10942) 5 years ago
password Add password requirement info on error (#9074) 5 years ago
pprof Add golangci (#6418) 6 years ago
private Upgrade golangci-lint to 1.24.0 (#10894) 5 years ago
process Add gitea-vet (#10948) 5 years ago
public Send 404 immediately for known public requests (#11117) 5 years ago
queue Prevent timer leaks in Workerpool and others (#11333) 5 years ago
recaptcha fixed reCAPTCHA URL (#9083) 5 years ago
references Accept punctuation after simple+cross repository issue references (#10091) 5 years ago
repofiles Revert "Avoid 0 new commits messages to be send (#11082)" (#11397) 5 years ago
repository Handle more pathological branch and tag names (#11843) (#11863) 5 years ago
secret Integrate OAuth2 Provider (#5378) 6 years ago
session Prevent (caught) panic on login (#11590) (#11597) 5 years ago
setting Prevent panic on empty HOST for mysql (#11850) (#11856) 5 years ago
ssh log.Fatal on failure to listen to SSH port (#10795) 5 years ago
structs Add option to API to update PullRequest base branch (#11666) (#11796) 5 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Move create/fork repository from models to modules/repository (#9489) 5 years ago
templates Move serviceworker to workbox and fix SSE interference (#11538) (#11547) 5 years ago
test Add Organization Wide Labels (#10814) 5 years ago
timeutil Fix timezone on issue deadline (#11697) (#11784) 5 years ago
upload Fix upload file type check (#7890) 6 years ago
user Add gitea-vet (#10948) 5 years ago
util Prevent timer leaks in Workerpool and others (#11333) 5 years ago
validation [API] Get a single commit via Ref (#10915) 5 years ago
webhook Handle panics that percolate up to the graceful module (#11291) 5 years ago