From d5a1e9cf4b58d9cb45de76a6b1088a6ca856d5b0 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 3 Nov 2008 10:13:00 +0000 Subject: [PATCH] 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. --- RELEASE-NOTES | 1 + includes/api/ApiQueryBase.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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(); } /** -- 2.20.1