Index: trunk/phase3/includes/IEContentAnalyzer.php |
— | — | @@ -569,8 +569,9 @@ |
570 | 570 | $chunk3 = substr( $chunk, 0, 3 ); |
571 | 571 | $chunk4 = substr( $chunk, 0, 4 ); |
572 | 572 | $chunk5 = substr( $chunk, 0, 5 ); |
| 573 | + $chunk5uc = strtoupper( $chunk5 ); |
573 | 574 | $chunk8 = substr( $chunk, 0, 8 ); |
574 | | - if ( $chunk5 == 'GIF87' || $chunk5 == 'GIF89' ) { |
| 575 | + if ( $chunk5uc == 'GIF87' || $chunk5uc == 'GIF89' ) { |
575 | 576 | return 'image/gif'; |
576 | 577 | } |
577 | 578 | if ( $chunk2 == "\xff\xd8" ) { |
— | — | @@ -579,7 +580,7 @@ |
580 | 581 | |
581 | 582 | if ( $chunk2 == 'BM' |
582 | 583 | && substr( $chunk, 6, 2 ) == "\000\000" |
583 | | - && substr( $chunk, 8, 2 ) != "\000\000" ) |
| 584 | + && substr( $chunk, 8, 2 ) == "\000\000" ) |
584 | 585 | { |
585 | 586 | return 'image/bmp'; // another non-standard MIME |
586 | 587 | } |
— | — | @@ -800,7 +801,7 @@ |
801 | 802 | } |
802 | 803 | |
803 | 804 | // BinHex |
804 | | - if ( !strncasecmp( $remainder, $binhexMagic, strlen( $binhexMagic ) ) ) { |
| 805 | + if ( !strncmp( $remainder, $binhexMagic, strlen( $binhexMagic ) ) ) { |
805 | 806 | $found['binhex'] = true; |
806 | 807 | } |
807 | 808 | } |