diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/exif/lib/exif.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/exif/lib/exif.php b/modules/exif/lib/exif.php index ed69e60b..212c07da 100644 --- a/modules/exif/lib/exif.php +++ b/modules/exif/lib/exif.php @@ -767,9 +767,9 @@ if ($result['ValidJpeg'] == 1) { $size = bin2hex(fread( $in, 2 )); // LOOP THROUGH MARKERS TILL YOU GET TO FFE1 (exif marker) - //$abortCount = 0; - //while(!feof($in) && $data!='ffe1' && $data!='ffc0' && $data!='ffd9' && ++$abortCount < 200) { - while(!feof($in) && $data!='ffe1' && $data!='ffc0' && $data!='ffd9') { + $abortCount = 0; + while(!feof($in) && $data!='ffe1' && $data!='ffc0' && $data!='ffd9' && ++$abortCount < 200) { + //while(!feof($in) && $data!='ffe1' && $data!='ffc0' && $data!='ffd9') { if ($data == 'ffe0') { // JFIF Marker $result['ValidJFIFData'] = 1; $result['JFIF']['Size'] = hexdec($size); |