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:
c7fcdd9
)
Error-handling for GIF getLongDesc
author
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 6 Aug 2009 22:55:44 +0000
(22:55 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 6 Aug 2009 22:55:44 +0000
(22:55 +0000)
includes/media/GIF.php
patch
|
blob
|
history
diff --git
a/includes/media/GIF.php
b/includes/media/GIF.php
index
c25b541
..
ef06aa7
100644
(file)
--- a/
includes/media/GIF.php
+++ b/
includes/media/GIF.php
@@
-36,7
+36,9
@@
class GIFHandler extends BitmapHandler {
global $wgUser, $wgLang;
$sk = $wgUser->getSkin();
- $metadata = unserialize($image->getMetadata());
+ $metadata = @unserialize($image->getMetadata());
+
+ if (!$metadata) return parent::getLongDesc( $image );
$info = array();
$info[] = $image->getMimeType();