When title contains only slashes, Title::getRootText() shouldn't return false
authorMartin Urbanec <martin.urbanec@wikimedia.cz>
Sat, 13 Jul 2019 22:27:43 +0000 (00:27 +0200)
committerMartin Urbanec <martin.urbanec@wikimedia.cz>
Sun, 14 Jul 2019 11:27:20 +0000 (13:27 +0200)
commited1ab4034e39878442fd389b4c1a22161afd935f
tree231076014cc2250f81a9b8cd4ab75559c268cc2a
parent5209b053541517073e669ff8584e0508bf8f5b06
When title contains only slashes, Title::getRootText() shouldn't return false

Otherwise, Title::makeTitleSafe() will return null, which
breaks the assumption that Title::makeTitleSafe() always
returns something meaningful for strings
returned by Title::getRootText().

Bug: T227816
Change-Id: If79a12bb8d23f1eafc10017d56c62566f39347ad
includes/Title.php
tests/phpunit/includes/TitleTest.php