From 117817252b2f03f5b1c965ede5b3052709cd6eac Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 13 Aug 2004 18:45:03 +0000 Subject: [PATCH] replace wfEscapeHTML() by htmlspecialchars() as brion did for other functions. Old one is non existent anyway --- includes/Title.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 7c8255d62f..60a2d1b4db 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -444,11 +444,11 @@ class Title { } function escapeLocalURL( $query = "" ) { - return wfEscapeHTML( $this->getLocalURL( $query ) ); + return htmlspecialchars( $this->getLocalURL( $query ) ); } function escapeFullURL( $query = "" ) { - return wfEscapeHTML( $this->getFullURL( $query ) ); + return htmlspecialchars( $this->getFullURL( $query ) ); } function getInternalURL( $query = "" ) { @@ -473,7 +473,7 @@ class Title { # For the title field in tags function getEscapedText() { - return wfEscapeHTML( $this->getPrefixedText() ); + return htmlspecialchars( $this->getPrefixedText() ); } # Is the title interwiki? -- 2.20.1