Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -31,7 +31,11 @@ |
32 | 32 | function wfSpecialSearch( $par = '' ) { |
33 | 33 | global $wgRequest, $wgUser; |
34 | 34 | |
35 | | - $search = str_replace( "\n", " ", $wgRequest->getText( 'search', $par ) ); |
| 35 | + // Strip underscores from title parameter; most of the time we'll want |
| 36 | + // text form here. But don't strip underscores from actual text params! |
| 37 | + $titleParam = str_replace( '_', ' ', $par ); |
| 38 | + |
| 39 | + $search = str_replace( "\n", " ", $wgRequest->getText( 'search', $titleParam ) ); |
36 | 40 | $searchPage = new SpecialSearch( $wgRequest, $wgUser ); |
37 | 41 | if( $wgRequest->getVal( 'fulltext' ) |
38 | 42 | || !is_null( $wgRequest->getVal( 'offset' )) |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -1,4 +1,4 @@ |
2 | | -= MediaWiki release notes = |
| 2 | +T= MediaWiki release notes = |
3 | 3 | |
4 | 4 | Security reminder: MediaWiki does not require PHP's register_globals |
5 | 5 | setting since version 1.2.0. If you have it on, turn it *off* if you can. |
— | — | @@ -146,7 +146,10 @@ |
147 | 147 | * Action=purge on ForeignApiFiles now works (purges their thumbnails and |
148 | 148 | description pages). |
149 | 149 | * (bug 15303) Title conversion for templates wasn't working in some cases. |
| 150 | +* (bug 15264) Underscores in Special:Search/Foo_bar parameters were taken |
| 151 | + literally; now converting them to spaces per expectation. |
150 | 152 | |
| 153 | + |
151 | 154 | === API changes in 1.14 === |
152 | 155 | |
153 | 156 | * Registration time of users registered before the DB field was created is now |