dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d46f93
)
bug fix -- htmlspecialchars in thumbnail markup
author
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 8 Feb 2004 08:05:22 +0000
(08:05 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 8 Feb 2004 08:05:22 +0000
(08:05 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
23b3b2c
..
d495666
100644
(file)
--- 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) );