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

index 1e69dfa79b206eee41a85b4b35514133866f5b35..f0996e4c3af9c1b0026d325543177626f0684c6e 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++;