aboutsummaryrefslogtreecommitdiffstats
path: root/includes/MimeMagic.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/MimeMagic.php')
-rw-r--r--includes/MimeMagic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/MimeMagic.php b/includes/MimeMagic.php
index 3b065255a443..2b240c3b02b4 100644
--- a/includes/MimeMagic.php
+++ b/includes/MimeMagic.php
@@ -695,7 +695,7 @@ class MimeMagic {
}
/* Look for WebP */
- if ( strncmp( $head, "RIFF", 4 ) == 0 && strncmp( substr( $head, 8, 8 ), "WEBPVP8 ", 8 ) == 0 ) {
+ if ( strncmp( $head, "RIFF", 4 ) == 0 && strncmp( substr( $head, 8, 7 ), "WEBPVP8", 7 ) == 0 ) {
wfDebug( __METHOD__ . ": recognized file as image/webp\n" );
return "image/webp";
}