Stop expanding search term in <title> of the search results page
authorLiangent <liangent@gmail.com>
Fri, 13 Apr 2012 10:08:45 +0000 (18:08 +0800)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 10 Oct 2012 06:04:24 +0000 (06:04 +0000)
commit9299bab032a85c1a421436da04a595b79f2b9d6c
treeb6c7156ef8539c3a9080f368f92741799203aa51
parentb9f7fe0bcf60d3fea5fc305ddbbaab7c339e75b1
Stop expanding search term in <title> of the search results page

When entering a search term such as {{SITENAME}} on Special:Search,
the <title> was generated with template expansion.

This patch prevents transformation by using search term as rawParams
of the 'searchresults-title' and 'pagetitle' messages.

Change-Id: Ief0bdd10ad882ebfaeefd11bf4217e70dd922d9d
includes/specials/SpecialSearch.php
tests/phpunit/includes/specials/SpecialSearchTest.php