https://bugzilla.wikimedia.org/show_bug.cgi?id=38444
Web browser: ---
Bug #: 38444
Summary: db functions don't handle options sanely
Product: MediaWiki
Version: 1.18.1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Database
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
In Database.php Select() and SelectRow() accept parameter options as string as
well as array but doesn't handle strings well
SelectRow() accepts $options as string and does
$options['LIMIT'] = 1;
and then later selectSQLText() does
$options = (array)$options;
which is strange.
String type should not be supported or handled with care.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l