Last modified: 2010-12-10 22:48:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18019, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16019 - interpolateTitle() overwrites title query param if $wgArticlePath = '/$1' if api.php is used
interpolateTitle() overwrites title query param if $wgArticlePath = '/$1' if ...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-18 00:22 UTC by minad
Modified: 2010-12-10 22:48 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description minad 2008-10-18 00:22:29 UTC
It is the same bug like here: https://bugzilla.wikimedia.org/show_bug.cgi?id=11428

The old bug was not fixed correctly because the block "if( $path == $wgScript ) return;" was added in the function interpolateTitle(). But if api.php is used path is /w/api.php and wgScript is /w/index.php so for the api interpolateTitle() continues.

Patch - Replace line 86 in WebRequest.php with:

                    if(strpos($path, "$wgScriptPath/") === 0 ) {
                        // Script inside a rewrite path?
                        // Abort to keep from breaking...
                        return;
                    }
Comment 1 Ilmari Karonen 2010-12-10 22:48:36 UTC
Should be fixed in r78209.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links