Page MenuHomePhabricator

includes/SpecialWhatlinkshere.php: Incorrect parameters for Database::select call
Closed, ResolvedPublic

Description

Author: mediawiki-bugzilla

Description:
In the function showIndirectLinks() the variable $options is initialised in
three different ways. This variable is then passed as parameter to
Database::select() later on. Database::select(), however, expects the $options
parameter to be an associative array, which it isn't in any of these cases. As a
result, these options are ignored in the actual database call.

Fix: replace array('ORDER BY ...') with array('ORDER BY' => '...')


Version: unspecified
Severity: minor

Details

Reference
bz9609

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:40 PM
bzimport set Reference to bz9609.
bzimport added a subscriber: Unknown Object (MLST).

Change 240688 had a related patch set uploaded (by Phuedx):
Fix media viewer for files with special characters

https://gerrit.wikimedia.org/r/240688