Don't double-escape search terms before highlighting. It's done once already SearchRe...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 20 Sep 2008 06:18:43 +0000 (06:18 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 20 Sep 2008 06:18:43 +0000 (06:18 +0000)
commita66784ec989eb0e5d9c136651a4075f8bf962428
tree441d50f641beefc8b8829e3e10284b493132956f
parent3a61c79f4872a4b93d4f27968d0a15b9a3427a12
Don't double-escape search terms before highlighting. It's done once already SearchResultSet::termMatches(). Doing it twice results in / -> \/ -> \\/, literal backslash followed by end of regex. Not obvious in SearchMySQL because of stripForSearch(), but visible in MWSearch.

The fact that it's done in termMatches() already is hackish and undocumented, but I won't change it right now.
includes/SearchEngine.php