From: Michael J. Rubinsky Date: Sat, 1 Aug 2009 21:48:50 +0000 (-0400) Subject: make sure to trim the UserComment field before checking if it's empty. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6a525e70a74f40cb6e2cb793d3499c9a8044a5c7;p=horde.git make sure to trim the UserComment field before checking if it's empty. --- diff --git a/framework/Image/lib/Horde/Image/Exif.php b/framework/Image/lib/Horde/Image/Exif.php index 4e5f53cee..ed8cab05c 100644 --- a/framework/Image/lib/Horde/Image/Exif.php +++ b/framework/Image/lib/Horde/Image/Exif.php @@ -407,7 +407,7 @@ class Horde_Image_Exif // here and let the calling code deal with it, or allow this // method to take an optional charset to convert to (would // introduce a dependency on Horde_String to do the conversion). - $data = trim(substr($data, 7)); + $data = trim(substr($data, 7)) ; default: return !empty($data) ? $data : '---';