diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-12-29 00:28:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 00:28:27 +0800 |
commit | 11555d850b0b5977d49b458db2be6305fe4f645d (patch) | |
tree | d75468bf043878f67298f91e2b5376c2315e9538 /modules | |
parent | 3175d08626232e85df64bec95fa62aac227e252a (diff) | |
download | gitea-11555d850b0b5977d49b458db2be6305fe4f645d.tar.gz gitea-11555d850b0b5977d49b458db2be6305fe4f645d.zip |
Fix bug of link query order on markdown render (#14156)
* Fix bug of link query order on markdown render
* Fix bluemonday bug and fix one wrong test
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/markup/html_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go index a018d74840..a3c273e628 100644 --- a/modules/markup/html_test.go +++ b/modules/markup/html_test.go @@ -142,7 +142,7 @@ func TestRender_links(t *testing.T) { `<p><a href="ftp://gitea.com/file.txt" rel="nofollow">ftp://gitea.com/file.txt</a></p>`) test( "magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download", - `<p><a href="magnet:?dn=download&xt=urn%3Abtih%3A5dee65101db281ac9c46344cd6b175cdcadabcde" rel="nofollow">magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download</a></p>`) + `<p><a href="magnet:?xt=urn%3Abtih%3A5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download" rel="nofollow">magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download</a></p>`) // Test that should *not* be turned into URL test( |