Commit Graph

8 Commits (7d1933717d5eff2011128084693d57308d8102a4)

Author SHA1 Message Date
techknowlogick 45976a1bde
Check blocklist for emails when adding them to account ()
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files ()
Change all license headers to comply with REUSE specification.

Fix 

Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
wxiaoguang 2900dc90a7
Improve valid user name check ()
Close https://github.com/go-gitea/gitea/issues/21640

Before: Gitea can create users like ".xxx" or "x..y", which is not
ideal, it's already a consensus that dot filenames have special
meanings, and `a..b` is a confusing name when doing cross repo compare.

After: stricter

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
6543 2ec2baf248
use IsLoopback ()
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
luzpaz e0296b6a6d
Fix various documentation, user-facing, and source comment typos ()
* Fix various doc, user-facing, and source comment typos

Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby`
ayb 9b33d18899
Added support for gopher URLs. ()
* Added support for gopher URLs.

* Add setting and make this user settable instead

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

Co-authored-by: Andrew Thornton <art27@cantab.net>
mrsdizzie de6ef14d04 Validate External Tracker URL Format ()
* Validate External Tracker URL Format

Add some validation checks for external tracker URL format.

Fixes 

* Don't make {index} a hard requirement

* Fix Description

* make fmt

* move regex to package level

* fix copyright date
Lauris BH 92466129ec
Improve URL validation for external wiki and external issues ()
* Improve URL validation for external wiki  and external issues

* Do not allow also localhost address for external URLs