diff options
author | 6543 <6543@obermui.de> | 2021-07-09 03:30:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 03:30:31 +0200 |
commit | 91162bbaea206e92cc514755a8ee288a43763803 (patch) | |
tree | 4d8e16a8b190dd885361e32f5f24e5675baf9cf5 /modules/markup/html_test.go | |
parent | 6c6938e2ede060dd819467f97f812dac034fe3d7 (diff) | |
download | gitea-91162bbaea206e92cc514755a8ee288a43763803.tar.gz gitea-91162bbaea206e92cc514755a8ee288a43763803.zip |
Update bluemonday to v1.0.15 (#16379)
* update github.com/microcosm-cc/bluemonday
* add exec flag to contrib/update_dependencies.sh
* Fix TESTS
Diffstat (limited to 'modules/markup/html_test.go')
-rw-r--r-- | modules/markup/html_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go index a494c5bd18..dff9102bed 100644 --- a/modules/markup/html_test.go +++ b/modules/markup/html_test.go @@ -138,13 +138,13 @@ func TestRender_links(t *testing.T) { `<p><a href="http://www.example.com/wpstyle/?p=364" rel="nofollow">http://www.example.com/wpstyle/?p=364</a></p>`) test( "https://www.example.com/foo/?bar=baz&inga=42&quux", - `<p><a href="https://www.example.com/foo/?bar=baz&inga=42&quux" rel="nofollow">https://www.example.com/foo/?bar=baz&inga=42&quux</a></p>`) + `<p><a href="https://www.example.com/foo/?bar=baz&inga=42&quux" rel="nofollow">https://www.example.com/foo/?bar=baz&inga=42&quux</a></p>`) test( "http://142.42.1.1/", `<p><a href="http://142.42.1.1/" rel="nofollow">http://142.42.1.1/</a></p>`) test( "https://github.com/go-gitea/gitea/?p=aaa/bbb.html#ccc-ddd", - `<p><a href="https://github.com/go-gitea/gitea/?p=aaa%2Fbbb.html#ccc-ddd" rel="nofollow">https://github.com/go-gitea/gitea/?p=aaa/bbb.html#ccc-ddd</a></p>`) + `<p><a href="https://github.com/go-gitea/gitea/?p=aaa/bbb.html#ccc-ddd" rel="nofollow">https://github.com/go-gitea/gitea/?p=aaa/bbb.html#ccc-ddd</a></p>`) test( "https://en.wikipedia.org/wiki/URL_(disambiguation)", `<p><a href="https://en.wikipedia.org/wiki/URL_(disambiguation)" rel="nofollow">https://en.wikipedia.org/wiki/URL_(disambiguation)</a></p>`) @@ -162,7 +162,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:?xt=urn%3Abtih%3A5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download" rel="nofollow">magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download</a></p>`) + `<p><a href="magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download" rel="nofollow">magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download</a></p>`) // Test that should *not* be turned into URL test( |