bug fix -- htmlspecialchars in thumbnail markup
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 8 Feb 2004 08:05:22 +0000 (08:05 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 8 Feb 2004 08:05:22 +0000 (08:05 +0000)
includes/Skin.php

index 23b3b2c..d495666 100644 (file)
@@ -1597,7 +1597,9 @@ class Skin {
                $link = $image->getPrefixedURL();
                $url  = wfImageUrl( $name );
                $path = wfImagePath( $name );
-
+               
+               $label = htmlspecialchars( $label );
+               
                list($width, $height, $type, $attr) = getimagesize( $path );
                $cwidth   = $boxwidth;
                $cheight  = intval( $height/($width/$cwidth) );