summaryrefslogtreecommitdiffstats
path: root/go.mod
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-05-19 17:17:07 +0200
committerGitHub <noreply@github.com>2023-05-19 17:17:07 +0200
commitf5ce2ed292a90041abd749a8db26671645648a43 (patch)
tree22e5223563b637f4a3fb9fdefb5cdae37d7e6eb3 /go.mod
parentSome refactors for issues stats (#24793) (diff)
downloadforgejo-f5ce2ed292a90041abd749a8db26671645648a43.tar.xz
forgejo-f5ce2ed292a90041abd749a8db26671645648a43.zip
Allow all URL schemes in Markdown links by default (#24805)
- Closes #21146 - Closes #16721 ## :warning: BREAKING :warning: This changes the default behavior to now create links for any URL scheme when the user uses the markdown form for links (`[label](URL)`), this doesn't affect the rendering of inline links. To opt-out set the `markdown.CUSTOM_URL_SCHEMES` setting to a list of allowed schemes, all other schemes (except `http` and `https`) won't be allowed. # Before ![image](https://github.com/go-gitea/gitea/assets/20454870/35fa18ce-7dda-4995-b5b3-3f360f38296d) # After ![image](https://github.com/go-gitea/gitea/assets/20454870/0922216b-0b35-4b77-9919-21a5c21dd5d0) --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod5
1 files changed, 2 insertions, 3 deletions
diff --git a/go.mod b/go.mod
index 24765df181..93b8052daf 100644
--- a/go.mod
+++ b/go.mod
@@ -76,7 +76,7 @@ require (
github.com/mattn/go-sqlite3 v1.14.16
github.com/meilisearch/meilisearch-go v0.24.0
github.com/mholt/archiver/v3 v3.5.1
- github.com/microcosm-cc/bluemonday v1.0.23
+ github.com/microcosm-cc/bluemonday v1.0.24
github.com/minio/minio-go/v7 v7.0.52
github.com/minio/sha256-simd v1.0.0
github.com/msteinert/pam v1.1.0
@@ -109,7 +109,7 @@ require (
github.com/yuin/goldmark-meta v1.1.0
golang.org/x/crypto v0.8.0
golang.org/x/image v0.7.0
- golang.org/x/net v0.9.0
+ golang.org/x/net v0.10.0
golang.org/x/oauth2 v0.7.0
golang.org/x/sys v0.8.0
golang.org/x/text v0.9.0
@@ -288,7 +288,6 @@ require (
go.uber.org/zap v1.24.0 // indirect
golang.org/x/mod v0.10.0 // indirect
golang.org/x/sync v0.2.0 // indirect
- golang.org/x/term v0.8.0 // indirect
golang.org/x/time v0.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect