From 37354f7884d1d556f3fabc60ae5c1fa72ca2f2b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 8 May 2005 07:08:04 +0000 Subject: [PATCH] * 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) --- includes/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1