https://bugzilla.wikimedia.org/show_bug.cgi?id=45655
Web browser: ---
Bug ID: 45655
Summary: mw.uri.new throws error on URL with empty query string
or fragment
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Scribunto
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l