From edc7b6931d0a412cc39a7db5546d271a3acb789d Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 29 Dec 2013 15:29:38 +0100 Subject: [PATCH] Replace usage of deprecated Title::escapeLocalURL() Change-Id: I1bd4bc60cba052ac158de91322e6621ad5badfa7 --- InputBox.classes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InputBox.classes.php b/InputBox.classes.php index 380015cc..6e822a53 100644 --- a/InputBox.classes.php +++ b/InputBox.classes.php @@ -101,7 +101,7 @@ class InputBox { 'name' => 'searchbox', 'id' => 'searchbox', 'class' => 'searchbox', - 'action' => SpecialPage::getTitleFor( 'Search' )->escapeLocalUrl(), + 'action' => htmlspecialchars( SpecialPage::getTitleFor( 'Search' )->getLocalUrl() ), ) ); $htmlOut .= Xml::element( 'input', @@ -255,7 +255,7 @@ class InputBox { 'name' => 'bodySearch' . $id, 'id' => 'bodySearch' . $id, 'class' => 'bodySearch', - 'action' => SpecialPage::getTitleFor( 'Search' )->escapeLocalUrl(), + 'action' => htmlspecialchars( SpecialPage::getTitleFor( 'Search' )->getLocalUrl() ), 'style' => $this->mInline ? 'display: inline;' : '' ) );