https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114191
Revision: 114191
Author: awjrichards
Date: 2012-03-19 21:37:02 +0000 (Mon, 19 Mar 2012)
Log Message:
-----------
htmlspecialchars -> Xml::escapeJsString
Modified Paths:
--------------
trunk/extensions/MobileFrontend/templates/SearchTemplate.php
Modified: trunk/extensions/MobileFrontend/templates/SearchTemplate.php
===================================================================
--- trunk/extensions/MobileFrontend/templates/SearchTemplate.php
2012-03-19 21:24:48 UTC (rev 114190)
+++ trunk/extensions/MobileFrontend/templates/SearchTemplate.php
2012-03-19 21:37:02 UTC (rev 114191)
@@ -8,14 +8,14 @@
public function getHTML() {
- $searchField = htmlspecialchars( $this->data['searchField'] );
+ $searchField = Xml::escapeJsString( $this->data['searchField']
);
$mainPageUrl = $this->data['mainPageUrl'];
$randomPageUrl = $this->data['randomPageUrl'];
$homeButton =
$this->data['messages']['mobile-frontend-home-button'];
$randomButton =
$this->data['messages']['mobile-frontend-random-button'];
- $clearText = htmlentities(
$this->data['messages']['mobile-frontend-clear-search'], ENT_QUOTES );
+ $clearText = Xml::escapeJsString(
$this->data['messages']['mobile-frontend-clear-search'] );
$searchValue =
$this->data['messages']['mobile-frontend-search-submit'];
- $placeholder = htmlentities(
$this->data['messages']['mobile-frontend-placeholder'], ENT_QUOTES );
+ $placeholder = Xml::escapeJsString(
$this->data['messages']['mobile-frontend-placeholder'] );
$scriptUrl = wfScript();
$searchBoxDisplayNone = ( $this->data['hideSearchBox'] ) ? '
style="display: none;" ' : '';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs