http://www.mediawiki.org/wiki/Special:Code/MediaWiki/67631

Revision: 67631
Author:   platonides
Date:     2010-06-08 16:12:55 +0000 (Tue, 08 Jun 2010)

Log Message:
-----------
Escape for html $wgLocalStylePath.
Killed unused $wgStylePath globals.

Modified Paths:
--------------
    trunk/phase3/skins/Vector.php

Modified: trunk/phase3/skins/Vector.php
===================================================================
--- trunk/phase3/skins/Vector.php       2010-06-08 16:06:01 UTC (rev 67630)
+++ trunk/phase3/skins/Vector.php       2010-06-08 16:12:55 UTC (rev 67631)
@@ -35,7 +35,7 @@
                // wait for the CSS file to load before fetching the HTC file.
                $out->addScript(
                        '<!--[if lt IE 7]><style 
type="text/css">body{behavior:url("' .
-                               $wgLocalStylePath .
+                               htmlspecialchars($wgLocalStylePath) .
                                '/vector/csshover.htc")}</style><![endif]-->'
                );
        }
@@ -70,7 +70,7 @@
         * @private
         */
        function buildNavigationUrls() {
-               global $wgContLang, $wgLang, $wgOut, $wgUser, $wgRequest, 
$wgArticle, $wgStylePath;
+               global $wgContLang, $wgLang, $wgOut, $wgUser, $wgRequest, 
$wgArticle
                global $wgDisableLangConversion, $wgVectorUseIconWatch;
 
                wfProfileIn( __METHOD__ );
@@ -676,7 +676,7 @@
         * when UI is in RTL mode
         */
        private function renderNavigation( $elements ) {
-               global $wgContLang, $wgVectorUseSimpleSearch, 
$wgVectorShowVariantName, $wgStylePath;
+               global $wgContLang, $wgVectorUseSimpleSearch, 
$wgVectorShowVariantName;
 
                // If only one element was given, wrap it in an array, allowing 
more
                // flexible arguments



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to