Index: branches/REL1_18/phase3/RELEASE-NOTES-1.18 |
— | — | @@ -3,6 +3,18 @@ |
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. |
6 | 6 | |
| 7 | +== MediaWiki 1.18.1 == |
| 8 | + |
| 9 | +????-??-?? |
| 10 | + |
| 11 | +???????????????????????????????????????????????????????????? |
| 12 | + |
| 13 | +=== Changes since 1.18.0 === |
| 14 | + |
| 15 | +* (bug 32712) Fix for search indexing of pages with certain unicode chars following URL |
| 16 | + |
| 17 | + |
| 18 | + |
7 | 19 | == MediaWiki 1.18 == |
8 | 20 | 2011-11-24 |
9 | 21 | |
Index: branches/REL1_18/phase3/tests/phpunit/includes/search/SearchUpdateTest.php |
— | — | @@ -77,4 +77,14 @@ |
78 | 78 | 'Bug 18609' |
79 | 79 | ); |
80 | 80 | } |
| 81 | + |
| 82 | + function testBug32712() { |
| 83 | + $text = "text „http://example.com“ text"; |
| 84 | + $result = $this->updateText( $text ); |
| 85 | + $processed = preg_replace( '/Q/u', 'Q', $result ); |
| 86 | + $this->assertTrue( |
| 87 | + $processed != '', |
| 88 | + 'Link surrounded by unicode quotes should not fail UTF-8 validation' |
| 89 | + ); |
| 90 | + } |
81 | 91 | } |
Index: branches/REL1_18/phase3/includes/search/SearchUpdate.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | "\\1\\2 \\2 \\2\\3", $text ); # Emphasize headings |
64 | 64 | |
65 | 65 | # Strip external URLs |
66 | | - $uc = "A-Za-z0-9_\\/:.,~%\\-+&;#?!=()@\\xA0-\\xFF"; |
| 66 | + $uc = "A-Za-z0-9_\\/:.,~%\\-+&;#?!=()@\\x80-\\xFF"; |
67 | 67 | $protos = "http|https|ftp|mailto|news|gopher"; |
68 | 68 | $pat = "/(^|[^\\[])({$protos}):[{$uc}]+([^{$uc}]|$)/"; |
69 | 69 | $text = preg_replace( $pat, "\\1 \\3", $text ); |