Title: ensure getBaseTitle and getRootTitle return valid Titles
authordaniel <dkinzler@wikimedia.org>
Fri, 14 Jun 2019 09:01:22 +0000 (11:01 +0200)
committerdaniel <dkinzler@wikimedia.org>
Mon, 1 Jul 2019 20:22:10 +0000 (22:22 +0200)
commit3b3115e7f33dc91c05c62dd5b385a37f51f051b5
tree56f5addd67bf76fb79e8ed4e55f90982cfeec010
parentb95a76ae9ecace5772989995a9a6d7e11fb1fdc6
Title: ensure getBaseTitle and getRootTitle return valid Titles

Since getBaseText() and getRootText() may return text with trailing
whitespace, getBaseTitle and getRootTitle must use makeTitleSafe instead
of makeTitle.

Bug: T225585
Change-Id: Id92df552f05e6a9ed7c9259a8779fa94c3587a3e
includes/Title.php
tests/phpunit/includes/TitleTest.php