From: Antoine Musso Date: Fri, 13 Aug 2004 18:45:03 +0000 (+0000) Subject: replace wfEscapeHTML() by htmlspecialchars() as brion did for other functions. Old... X-Git-Tag: 1.5.0alpha1~2379 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=117817252b2f03f5b1c965ede5b3052709cd6eac;p=lhc%2Fweb%2Fwiklou.git replace wfEscapeHTML() by htmlspecialchars() as brion did for other functions. Old one is non existent anyway --- 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?