Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de6dc92

Browse files
fix for 7.1
1 parent 562228b commit de6dc92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/ImageResize.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function __construct($filename)
118118
} else {
119119
throw new ImageResizeException('Unsupported file type');
120120
}
121-
} elseif(strstr(finfo_file($finfo, $filename), 'image/webp')) {
121+
} elseif(strstr(finfo_file($finfo, $filename), 'image/webp') !== false) {
122122
$checkWebp = true;
123123
$this->source_type = IMAGETYPE_WEBP;
124124
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /