Author: M8R-udfkkf
Description:
When querying siteinfo at http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo,
It returns
<?xml version="1.0"?>
<api>
<query> <general mainpage="Main Page" base="http://en.wikipedia.org/wiki/Main_Page" sitename="Wikipedia" generator="MediaWiki 1.16alpha-wmf" phpversion="5.2.4-2ubuntu5.7wm1" phpsapi="apache2handler" dbtype="mysql" dbversion="5.1.43-wm3193-log" rev="59858" case="first-letter" rights="Creative Commons Attribution-Share Alike 3.0 Unported" lang="en" fallback8bitEncoding="windows-1252" writeapi="" timezone="UTC" timeoffset="0" articlepath="/wiki/$1" scriptpath="/w" script="/w/index.php" variantarticlepath="" server="http://en.wikipedia.org" wikiid="enwiki" /> </query>
</api>
Under articlepath, it returns "/wiki/$1" when it should return "/wiki/".
This is set by "$data['articlepath'] = $GLOBALS['wgArticlePath'];" in ApiQuerySiteinfo.php, so this is probably a problem in globals.
Version: unspecified
Severity: minor
URL: http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo