From: Ævar Arnfjörð Bjarmason Date: Sun, 8 May 2005 07:08:04 +0000 (+0000) Subject: * To the tune of "America, Fuck Yeah" from "Team America: World Police" X-Git-Tag: 1.5.0alpha2~269 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=37354f7884d1d556f3fabc60ae5c1fa72ca2f2b6;p=lhc%2Fweb%2Fwiklou.git * To the tune of "America, Fuck Yeah" from "Team America: World Police" "Type checking, FUCK YEAH! Coming again, to save the mother fucking day yeah" ! (we now have typechecking of Exif tags) --- diff --git a/includes/Image.php b/includes/Image.php index d5412d7d04..d1835a9bab 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1142,7 +1142,7 @@ class Image $obj = new Exif; $valid = $obj->mValidExif; foreach($exif as $k => $v) { - if ( ! in_array($k, $valid) ) + if ( !in_array($k, $valid) || !$obj->validate($k, $v) ) unset($exif[$k]); } return $exif;