Page MenuHomePhabricator

mw.Uri should support URLs like http://wikimedia.org without trailing slash
Closed, DuplicatePublic

Description

http://wikimedia.org/ is recognized. So if you have only a domain name, it *requires* a path.

This might be valid ([citation needed]) based on a strict interpretation of the RfC, but is problematic when users are inputting URLs we are validating/parsing.

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:11 AM
bzimport set Reference to bz66617.
bzimport added a subscriber: Unknown Object (MLST).

Patch needs rework (didn't pass Jenkins)...

Change 139584 had a related patch set uploaded (by Legoktm):
mediawiki.Uri: Support URIs with no explicit path component

https://gerrit.wikimedia.org/r/139584

Krinkle renamed this task from mw.Uri doesn't recognize URLs like http://wikimedia.org (requires slash at the end) to mw.Uri should support URLs like http://wikimedia.org without trailing slash.Nov 4 2015, 2:21 AM
Krinkle updated the task description. (Show Details)
Krinkle set Security to None.
Krinkle removed a subscriber: wikibugs-l-list.

Change 139584 abandoned by Krinkle:
mediawiki.Uri: Support URIs with no explicit path component

https://gerrit.wikimedia.org/r/139584