From: Pierre Joye Date: Sat, 6 Mar 2004 17:31:51 +0000 (+0000) Subject: - fix #27238 X-Git-Tag: RELEASE_0_2_0~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8b6b2102b2ba20f56e8c26a83c490ebce21fe43;p=php - fix #27238 --- diff --git a/ext/standard/iptc.c b/ext/standard/iptc.c index 90e6fb3dca..5bccdb3795 100644 --- a/ext/standard/iptc.c +++ b/ext/standard/iptc.c @@ -320,7 +320,7 @@ PHP_FUNCTION(iptcparse) tagsfound = 0; /* number of tags already found */ while (inx < length) { /* find 1st tag */ - if ((buffer[inx] == 0x1c) && (buffer[inx+1] == 0x02)){ + if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){ break; } else { inx++;