Spotted in production:
Notice: Undefined index: 1 in /srv/mediawiki/php-1.26wmf21/extensions/UploadWizard/includes/UploadWizardCampaign.php on line 447
Spotted in production:
Notice: Undefined index: 1 in /srv/mediawiki/php-1.26wmf21/extensions/UploadWizard/includes/UploadWizardCampaign.php on line 447
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Consider the object reference not being passed in the expected format | Kai Nissen (WMDE) | mediawiki/extensions/UploadWizard | master | +46 -13 |
Apparently a small bug in da6e9ac6:
private function getButtonHrefByObjectReference( $objRef ) {
/*447*/ list( $wiki, $title ) = explode( '|', $objRef );
if ( Interwiki::isValidInterwiki( $wiki ) ) {
return str_replace( '$1', $title, Interwiki::fetch( $wiki )->getURL() );
}
return false;
}I'm not sure what this code is supposed to do when $objRef (pipe-separated string) has only one value. Should that be ignored, or treated as a title on the current wiki? @kai.nissen?
Change 236026 had a related patch set uploaded (by Kai Nissen (WMDE)):
Consider the object reference not being passed in the expected format
Change 236026 merged by jenkins-bot:
Consider the object reference not being passed in the expected format