Escape retrievedfrom message in the skin
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Sat, 6 Dec 2014 09:52:47 +0000 (10:52 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sat, 20 Dec 2014 21:19:28 +0000 (21:19 +0000)
Change-Id: Ifd696ecd93c76e56cb21b3f2645367beeeeb5ba0

includes/skins/Skin.php

index 1a4ec98..04c02d6 100644 (file)
@@ -646,8 +646,9 @@ abstract class Skin extends ContextSource {
                        $url = htmlspecialchars( wfExpandIRI( $this->getTitle()->getCanonicalURL() ) );
                }
 
-               return $this->msg( 'retrievedfrom', '<a dir="ltr" href="' . $url
-                       . '">' . $url . '</a>' )->text();
+               return $this->msg( 'retrievedfrom' )
+                       ->rawParams( '<a dir="ltr" href="' . $url. '">' . $url . '</a>' )
+                       ->escaped();
        }
 
        /**