(bug 42513) mediawiki.Uri: Fix parsing of URIs with @ in path.
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Fri, 18 Jan 2013 17:46:02 +0000 (12:46 -0500)
committerTimo Tijhof <ttijhof@wikimedia.org>
Sat, 19 Jan 2013 18:20:46 +0000 (19:20 +0100)
commitcd1c60bc850b3c426fdcc2626dfca58907071a9f
treedcb993e0b804dad9715529c89f965943f1bdd86e
parent6d5208cef507692411bdadf9f57c9bc7ede465b6
(bug 42513) mediawiki.Uri: Fix parsing of URIs with @ in path.

The regexes for URI parsing in mediawiki.Uri did not make sure
there were no slashes (/), question marks (?) or hashes (#) in
the username or password of the URI. As a result an @ symbol
later on in the url messed up the result.

This commit fixes the regexes so that URIs with an @ symbol in
the path, query, or fragment don't get interpreted as having
a username when they actually don't.

Change-Id: I4954bfd3750d5c990e91cc0dc8a175225ccbad1e
resources/mediawiki/mediawiki.Uri.js
tests/qunit/suites/resources/mediawiki/mediawiki.Uri.test.js