Index: trunk/phase3/includes/api/ApiQueryAllUsers.php |
— | — | @@ -55,12 +55,12 @@ |
56 | 56 | $limit = $params['limit']; |
57 | 57 | $tables = $db->tableName('user'); |
58 | 58 | |
59 | | - if (!is_null($params['from'])) |
60 | | - $this->addWhere('user_name>=' . $db->addQuotes(ApiQueryBase :: titleToKey($params['from']))); |
| 59 | + if( !is_null( $params['from'] ) ) |
| 60 | + $this->addWhere( 'user_name >= ' . $db->addQuotes( self::keyToTitle( $params['from'] ) ) ); |
| 61 | + |
| 62 | + if( isset( $params['prefix'] ) ) |
| 63 | + $this->addWhere( 'user_name LIKE "' . $db->escapeLike( self::keyToTitle( $params['prefix'] ) ) . '%"' ); |
61 | 64 | |
62 | | - if (isset($params['prefix'])) |
63 | | - $this->addWhere("user_name LIKE '" . $db->escapeLike(ApiQueryBase :: titleToKey($params['prefix'])) . "%'"); |
64 | | - |
65 | 65 | if (!is_null($params['group'])) { |
66 | 66 | // Filter only users that belong to a given group |
67 | 67 | $tblName = $db->tableName('user_groups'); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -441,6 +441,9 @@ |
442 | 442 | * Added site statistics (siprop=statistics for meta=siteinfo) |
443 | 443 | * (bug 10902) Unable to fetch user contributions from IP addresses |
444 | 444 | * `list=usercontribs` no longer requires that the user exist |
| 445 | +* (bug 10971) `aufrom` parameter doesn't work with spaces |
| 446 | +* Fix username handling issue with `auprefix` parameter |
| 447 | +* Treat underscores as spaces for `aufrom` and `auprefix` parameters |
445 | 448 | |
446 | 449 | == Maintenance script changes since 1.10 == |
447 | 450 | |