mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SecureLinkFixer
synced 2024-11-25 07:55:32 +00:00
e436b78837
Change-Id: I2c8efb613632ce785580e8fba4da5b0a3a36a0f6
17 lines
835 B
Plaintext
17 lines
835 B
Plaintext
!! test
|
|
Different domains
|
|
!! input
|
|
Normal: http://test.localhost/
|
|
Preloaded: http://en.wikipedia.org/wiki/Main_Page
|
|
Protorel: [//en.wikipedia.org/wiki/Main_Page Main Page]
|
|
TLD: http://foo.dev/foo/
|
|
Ignored protocol: ftp://en.wikipedia.org/
|
|
!! result
|
|
<p>Normal: <a rel="nofollow" class="external free" href="http://test.localhost/">http://test.localhost/</a>
|
|
Preloaded: <a rel="nofollow" class="external free" href="https://en.wikipedia.org/wiki/Main_Page">http://en.wikipedia.org/wiki/Main_Page</a>
|
|
Protorel: <a rel="nofollow" class="external text" href="https://en.wikipedia.org/wiki/Main_Page">Main Page</a>
|
|
TLD: <a rel="nofollow" class="external free" href="https://foo.dev/foo/">http://foo.dev/foo/</a>
|
|
Ignored protocol: <a rel="nofollow" class="external free" href="ftp://en.wikipedia.org/">ftp://en.wikipedia.org/</a>
|
|
</p>
|
|
!! end
|