Skip to content

Commit 8952cc0

Browse files
committed
Allow http
1 parent 6a39a39 commit 8952cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sanitize/sanitize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func getPolicy() *bluemonday.Policy {
5454
)
5555

5656
p.AllowAttrs("href").OnElements("a")
57-
p.AllowURLSchemes("https")
57+
p.AllowURLSchemes("http", "https")
5858
p.RequireParseableURLs(true)
5959
p.RequireNoFollowOnLinks(true)
6060
p.RequireNoReferrerOnLinks(true)

0 commit comments

Comments
 (0)