From: Roan Kattouw Date: Mon, 3 Nov 2008 10:13:00 +0000 (+0000) Subject: API: (bug 16225) apfrom=Talk:Foo behaved like apfrom=Foo because Talk: was interprete... X-Git-Tag: 1.31.0-rc.0~44450 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=d5a1e9cf4b58d9cb45de76a6b1088a6ca856d5b0;p=lhc%2Fweb%2Fwiklou.git API: (bug 16225) apfrom=Talk:Foo behaved like apfrom=Foo because Talk: was interpreted as a namespace prefix. This caused bugs when trying to query-continue with a title like Talk:Talk:Foo. Other XXfrom and XXprefix parameters probably had this bug as well. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6ff481b9be..3372e8ce2b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -397,6 +397,7 @@ The following extensions are migrated into MediaWiki 1.14: * (bug 16105) Image metadata attributes containing spaces result in invalid XML * (bug 16126) Added siprop=magicwords to meta=siteinfo * (bug 16159) Added wlshow=patrolled|!patrolled to list=watchlist +* (bug 16225) Titles like Talk:Talk:Foo broke apfrom and friends === Languages updated in 1.14 === diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index e2c43acae6..024f5a5fbe 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -338,7 +338,7 @@ abstract class ApiQueryBase extends ApiBase { $t = Title::newFromText($title); if(!$t) $this->dieUsageMsg(array('invalidtitle', $title)); - return $t->getDbKey(); + return $t->getPrefixedDbKey(); } /**