HomePhabricator

Fix Title::getFragmentForURL for bad interwiki prefix.
8a2f437ad300Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix Title::getFragmentForURL for bad interwiki prefix.

Calling Title::getLinkURL or any other method that relies on
getFragmentForURL on a title with an unknown interwiki prefix
was triggering a fatal error. With this patch, that situation is
handled more gracefully.

(cherry-picked from 337311662d344c90590ca5cee34b8a87da933430)

Bug: T204800
Change-Id: I665cd5e983a80c15c68c89541d9c856082c460bb

Details

Provenance
danielAuthored on Jan 23 2019, 10:17 AM
Jdforrester-WMFCommitted on Feb 9 2019, 11:17 PM
Parents
rMWa1386a6a1895: Removes Google web search from exception page
Branches
Unknown
Tags
Unknown
ChangeId
I665cd5e983a80c15c68c89541d9c856082c460bb