Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Relative URIs are considered safe

  • Loading branch information...
commit 59358adea87fa5061b5c21be571a3480bf0217a9 1 parent d0e587a
@dcoxall dcoxall authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  inline.go
View
2  inline.go
@@ -718,7 +718,7 @@ func autoLink(p *parser, out *bytes.Buffer, data []byte, offset int) int {
return linkEnd - rewind
}
-var validUris = [][]byte{[]byte("http://"), []byte("https://"), []byte("ftp://"), []byte("mailto://")}
+var validUris = [][]byte{[]byte("http://"), []byte("https://"), []byte("ftp://"), []byte("mailto://"), []byte("/")}
func isSafeLink(link []byte) bool {
for _, prefix := range validUris {
Please sign in to comment.
Something went wrong with that request. Please try again.