Improve wfEscapeWikiText
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 3 Sep 2013 20:00:56 +0000 (16:00 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 3 Sep 2013 21:36:13 +0000 (17:36 -0400)
commita2f759891164da4d25e60167bb9ad0408bbc6d62
tree8c29b99ad9f550da886f29a58ab7b17b317171df
parent384c13add4532362f9278275c8dacfc71c92ea28
Improve wfEscapeWikiText

The following are now correctly escaped:
* Space at the start of a line
* Start-of-line characters after \r
* Magic links such as "RFC 123" with non-space whitespace
* URIs that don't use "://", such as "urn:foo"
* Double-underscore magic words

Bug: 53658
Change-Id: Ie8803a03b20e3fd7e5cc7e55829f24bb86f60b17
includes/GlobalFunctions.php