]> source.dussan.org Git - gitea.git/commit
Disallow dangerous URL schemes (#25960) (#25964)
authorKN4CK3R <admin@oldschoolhack.me>
Tue, 18 Jul 2023 19:48:52 +0000 (21:48 +0200)
committerGitHub <noreply@github.com>
Tue, 18 Jul 2023 19:48:52 +0000 (19:48 +0000)
commitab54310731411c09ff41b8eb75eb6a3691768d06
tree9564afffe2143623800ed208720bc64547642e1b
parentb7d054e4b5ccabbc1bf10824b6e3483a53c437f9
Disallow dangerous URL schemes (#25960) (#25964)

Regression: https://github.com/go-gitea/gitea/pull/24805
Closes: #25945
- Disallow `javascript`, `vbscript` and `data` (data uri images still
work) url schemes even if all other schemes are allowed
- Fixed older `cbthunderlink` tests

---------

Co-authored-by: delvh <dev.lh@web.de>
go.mod
go.sum
modules/markup/sanitizer.go
modules/markup/sanitizer_test.go