X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=includes%2Flibs%2Fmime%2FMimeAnalyzer.php;h=565c1573312e1f1a1996b38cbc507018bc4f511d;hb=ed92b00ea5b1af2638948beaf334bc28e22ff4b6;hp=f4f8bdfc4ce94fc8d476c8cdf61746a390d88817;hpb=0a9008cbe1e49fd548c965f0af1a55b85ff2f604;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/mime/MimeAnalyzer.php b/includes/libs/mime/MimeAnalyzer.php index f4f8bdfc4c..565c157331 100644 --- a/includes/libs/mime/MimeAnalyzer.php +++ b/includes/libs/mime/MimeAnalyzer.php @@ -739,8 +739,8 @@ EOT; ( strpos( $head, "<\x00?\x00 " ) !== false ) || ( strpos( $head, "<\x00?\x00\n" ) !== false ) || ( strpos( $head, "<\x00?\x00\t" ) !== false ) || - ( strpos( $head, "<\x00?\x00=" ) !== false ) ) { - + ( strpos( $head, "<\x00?\x00=" ) !== false ) + ) { $this->logger->info( __METHOD__ . ": recognized $file as application/x-php\n" ); return 'application/x-php'; } @@ -1039,7 +1039,6 @@ EOT; // Special code for ogg - detect if it's video (theora), // else label it as sound. if ( $mime == 'application/ogg' && file_exists( $path ) ) { - // Read a chunk of the file $f = fopen( $path, "rt" ); if ( !$f ) {