Index: trunk/phase3/includes/SearchEngine.php |
— | — | @@ -571,6 +571,7 @@ |
572 | 572 | $lines = explode( "\n", $text ); |
573 | 573 | |
574 | 574 | $terms = implode( '|', $terms ); |
| 575 | + $terms = str_replace( '/', "\\/", $terms); |
575 | 576 | $max = intval( $contextchars ) + 1; |
576 | 577 | $pat1 = "/(.*)($terms)(.{0,$max})/i"; |
577 | 578 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -190,6 +190,8 @@ |
191 | 191 | * (bug 13756) Don't show the form and navigation links of Special:Newpages if |
192 | 192 | the page is included |
193 | 193 | * When hiding things on WhatLinksHere, generated URLs should hide them too |
| 194 | +* Properly escape search terms with forward slashes so they appear highlighted |
| 195 | + in search results. |
194 | 196 | |
195 | 197 | |
196 | 198 | === API changes in 1.13 === |