From: Tim Starling Date: Sun, 8 Feb 2004 08:05:22 +0000 (+0000) Subject: bug fix -- htmlspecialchars in thumbnail markup X-Git-Tag: 1.3.0beta1~1007 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=4d12ac488336acd26caa0d27a3a9f39d03a627f2;p=lhc%2Fweb%2Fwiklou.git bug fix -- htmlspecialchars in thumbnail markup --- diff --git a/includes/Skin.php b/includes/Skin.php index 23b3b2c05b..d495666a72 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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) );