Test case for disallowed character in an external link
authorWil Mahan <wmahan@users.mediawiki.org>
Mon, 11 Oct 2004 22:13:02 +0000 (22:13 +0000)
committerWil Mahan <wmahan@users.mediawiki.org>
Mon, 11 Oct 2004 22:13:02 +0000 (22:13 +0000)
maintenance/Makefile
maintenance/parserTests.txt

index 1138fe6..a0e0441 100644 (file)
@@ -1,4 +1,4 @@
-.PHONY: help make test
+.PHONY: help doc test
 help:
        # Run 'make test' to run the parser tests.
        # Run 'make doc' to run the phpdoc generation.
index 9a08e73..d8d8497 100644 (file)
@@ -561,6 +561,15 @@ BUG 289: literal double quote in bracketed URL
 </p>
 !!end
 
+!! test
+External links: invalid character
+!! input
+[http://www.example.com\0 test]
+!! result
+<p>[<a href="http://www.example.com" class='external'>http://www.example.com</a>\0 test]
+</p>
+!! end
+
 ###
 ### Quotes
 ###