Commit Graph

10883 Commits (1c230f69d9951af1174f2956064f18e2d135723d)
 

Author SHA1 Message Date
Patrick Schratz 1c230f69d9
update ssh passthrough ()
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot 83c920d7fa [skip ci] Updated translations via Crowdin
Kamil Domański 26da20aa93
load U2F js only on pages which need it ()
* load U2F js only on pages which need it

* Update templates/base/head.tmpl
Artemis Tosini cb08248c33
Add support for ed25519_sk and ecdsa_sk SSH keys ()
* Add support for ed25519_sk and ecdsa_sk SSH keys

These start with sk-ssh-ed25519@openssh.com and sk-ecdsa-sha2-nistp256@openssh.com.
They are supported in recent versions of go x/crypto/ssh and OpenSSH 8.2
or higher.

* skip ssh-keygen

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

Co-authored-by: Andrew Thornton <art27@cantab.net>
Roberto Santalla ef85bf84ee
Project: show referenced PRs in issue cards ()
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath 172229966c
Prevent panic on fuzzer provided string ()
* Prevent panic on fuzzer provided string

The fuzzer has found that providing a <body> tag with an attribute to
PostProcess causes a panic. This PR removes any rendered html or body
tags from the output.

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

* Placate lint

* placate lint again

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

* minor cleanup

Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick b708968694
upgrade to alpine 3.13 ()
Lunny Xiao 135b0e502d
Fix log http status is always zero ()
* Fix log http status is always zero

* Fix lint

Co-authored-by: 6543 <6543@obermui.de>
Kyle D 41e19b93a2
Align dropdown right ()
Jake Howard e05670da84
Note that all template directories are relative to the `CustomPath` configuration, not a `custom` directory inside it ()
* Note that all template directories are relative to the `CustomPath` configuration, not a `custom` directory inside it.

This is a minor clarification, which makes locating where the templates need to be much easier

* Note that it's possible to read the `GITEA_CUSTOM` value from the admin

* Use "$GITEA_CUSTOM" as placeholder

It's more obvious it's a variable and not a typo
Chester Liu 0c0445c97a
Add pager to the branches page ()
* Add pager to the branches page

* override pageSize if bigger than max

* Make branches commit range configurable

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: silverwind <me@silverwind.io>
KN4CK3R 8d0e331c0a
Removed invalid form tag ()
introduced by 
Daniel Vos 185c5ae2c4
Update back-up restore example for 1.13 changes ()
Signed-off-by: Daniël Vos <danielvos@outlook.com>

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lunny Xiao b4dc080c96
It seems vet on windows is unnecessary ()
* It seems vet on windows is unnecessary

* add vet back to drone but remove GOOS and GOARCH when build vet
zeripath b59ed41e81
Use path not filepath in routers/editor ()
The incorrect use of filepath instead of path means that
it is possible to cause a stackoverflow on Windows

Signed-off-by: Andrew Thornton <art27@cantab.net>
Ash McKenzie 6ff63c8202
Display error if twofaSecret cannot be retrieved ()
6543 2686e6bbbe
Check if label template exist first ()
* add check

* refactor

* rollback repo on error after session closed
Ash McKenzie 127907c5e6
Allow passcode invalid error to appear ()
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Jimmy Praet f95dce2f10
exclude authored PRs from Review Requested filter ()
Co-authored-by: Lauris BH <lauris@nix.lv>
GiteaBot 8e39157e92 [skip ci] Updated translations via Crowdin
Lauris BH f5abe2f563
Upgrade blevesearch dependency to v2.0.1 ()
* Upgrade blevesearch dependency to v2.0.1

* Update rupture to v1.0.0

* Fix test
GiteaBot 3aa53dc6bc [skip ci] Updated translations via Crowdin
6543 21da519c0c
Implement ghost comment mitigation ()
* Implement ghost comment mitigation

Adds a config option USER_DELETE_WITH_COMMENTS_MAX_DAYS to the [service] section. See https://codeberg.org/Codeberg/Discussion/issues/24 for the underlying issue.

* cleanup

* use setting module correctly

* add to docs

Co-authored-by: Moritz Marquardt <git@momar.de>
Lauris BH ca63a9d3f1
Add edit, delete and reaction support to code review comments on issue page ()
Jimmy Praet acb1ceb1f4
Add review requested filter on pull request overview ()
* Add review requested filter on pull request overview 

fix formatting

* add review_requested filter to /repos/issues/search API endpoint

* only Approve and Reject status should supersede Request status

* add support for team reviews

* refactor: remove duplication of issue filtering conditions
Jimmy Praet 872d308892
escape branch names in compare url ()
GiteaBot 66e426b2f1 [skip ci] Updated translations via Crowdin
Jimmy Praet 4d9349123f
label and milestone webhooks on issue/pull creation ()
GiteaBot e6155ff9b6 [skip ci] Updated translations via Crowdin
Lunny Xiao dc66e4740f
Fix middlewares sequences ()
Co-authored-by: 6543 <6543@obermui.de>
GiteaBot 76fefd803f [skip ci] Updated translations via Crowdin
Lauris BH 0a3c3357f3
Sort issue search results by revelance ()
GiteaBot 2db4733c7d [skip ci] Updated translations via Crowdin
6543 3091600cc8
KanBan: be able to set default board ()
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
GiteaBot c09e11d018 [skip ci] Updated translations via Crowdin
Kyle D bfd0c47ef6
Kd/fix allow svg doctype ()
* make svg regex case-insensitive & use strict word boundary

* allow doctype svg

* add doctype tests

* allow <!DOCTYPE svg> and <svg/>
Norwin a21adf92ec
restrict query selector to edit form ()
Co-authored-by: Lauris BH <lauris@nix.lv>
Lauris BH 6eee9f0f4e
Merge default and system webhooks under one menu ()
Lunny Xiao 84b147c7f0
Use IsProd instead of testing if it's equal. ()
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
Lunny Xiao 60a3297a33
Use ServerError provided by Context ()
... instead of InternalServerError by macaron
Lunny Xiao f76c30094f
Fix typo ()
Kyungmin Bae edbc5c86df
Use Request.URL.RequestURI() for fcgi () ()
techknowlogick 954aeefb05
Update Link
GiteaBot 648d85d426 [skip ci] Updated translations via Crowdin
Kyle D 920c0bde2d
Kd/add bountysource ()
* Add bountysource to Sponsors link

* Add badge to readme
Elena Neuschild 564030336d
Issues overview should not show issues from archived repos ()
* Add lots of comments to user.Issues()

* Answered some questions from comments

* fix typo in comment

* Refac user.Issues(): add func repoIDs

* Refac user.Issues(): add func userRepoIDs

* Refac user.Issues(): add func issueIDsFromSearch

* Refac user.Issues(): improve error handling

* Refac user.Issues(): add inline documentation and move variable declarations closer to their usages

* Refac user.Issues(): add func repoIDMap

* Refac user.Issues(): cleanup

* Refac: Separate Issues from Pulls during routing

* fix typo in comment

* Adapt Unittests to Refactoring

* Issue13171: Issue and PR Overviews now ignore archived Repositories

* changed some verbatim SQL conditions to builder.Eq

* models/issue.go: use OptionalBool properly

Co-authored-by: 6543 <6543@obermui.de>

* Use IsArchived rather than ExcludeArchivedRepos

* fixed broken test after merge

* added nil check

* Added Unit Test securing Issue 13171 fix

* Improved IsArchived filtering in issue.GetUserIssueStats

* Removed unused func

* Added grouping to avoid returning duplicate repo IDs

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Gitea <gitea@fake.local>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Jonathan Tran 81467e6f35
Display SVG files as images instead of text ()
* Change to display SVG files as images

* Remove unsafe styles from SVG CSP

* Add integration test to test SVG headers

* Add config setting to disable SVG rendering

* Add test for img tag when loading SVG image

* Remove the Raw view button for svg files since we don't fully support this

* Fix copyright year

* Rename and move config setting

* Add setting to cheat sheet in docs

* Fix so that comment matches cheat sheet

* Add allowing styles in CSP based on pull request feedback

* Re-enable raw button since we show SVG styles now

* Change so that SVG files are editable

* Add UI to toggle between source and rendered image for SVGs

* Change to show blame button for SVG images

* Fix to update ctx data

* Add test for DetectContentType when file is longer than sniffLen

Co-authored-by: Jonathan Tran <jon@allspice.io>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
GiteaBot 9465e60504 [skip ci] Updated translations via Crowdin
Nuno Silva db9bb1ff69
Update docs to clarify issues raised in ()
- example config is not supposed to be copied
- 'persistable-channel' uses a leveldb internally
- '*CONN_STR' overrides queue DIR
GiteaBot 9659808172 [skip ci] Updated translations via Crowdin