replace wfEscapeHTML() by htmlspecialchars() as brion did for other functions. Old...
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 13 Aug 2004 18:45:03 +0000 (18:45 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 13 Aug 2004 18:45:03 +0000 (18:45 +0000)
includes/Title.php

index 7c8255d..60a2d1b 100644 (file)
@@ -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 <a> tags
        function getEscapedText()
        {
-               return wfEscapeHTML( $this->getPrefixedText() );
+               return htmlspecialchars( $this->getPrefixedText() );
        }
        
        # Is the title interwiki?