]> granicus.if.org Git - php/commitdiff
- fix #27238
authorPierre Joye <pajoye@php.net>
Sat, 6 Mar 2004 17:31:51 +0000 (17:31 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 6 Mar 2004 17:31:51 +0000 (17:31 +0000)
ext/standard/iptc.c

index 90e6fb3dca721348c85c061ec4dd92297307071d..5bccdb3795cf7bcf05799387d46160a3e1710855 100644 (file)
@@ -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++;