Last modified: 2013-03-05 19:54:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47655, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45655 - mw.uri.new throws error on URL with empty query string or fragment
mw.uri.new throws error on URL with empty query string or fragment
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-03 07:00 UTC by Michael Mantel
Modified: 2013-03-05 19:54 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael Mantel 2013-03-03 07:00:17 UTC
mw.uri.new throws an error if the URL passed to it ends with a question mark (i.e. an empty query string) or a pound sign (i.e. an empty fragment)

mw.uri.new('http://www.example.com/foo?') ==> Lua error in mw.uri.lua at line 131: invalid .path.

mw.uri.new('http://www.example.com/foo#') ==> Lua error in mw.uri.lua at line 131: invalid .path.

These are valid URL's and should be parsed successfully.
Comment 1 Brad Jorsch 2013-03-05 01:42:23 UTC
Gerrit change #52192
Comment 2 Brad Jorsch 2013-03-05 19:54:16 UTC
Merged

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links