We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562228b commit de6dc92Copy full SHA for de6dc92
lib/ImageResize.php
@@ -118,7 +118,7 @@ public function __construct($filename)
118
} else {
119
throw new ImageResizeException('Unsupported file type');
120
}
121
- } elseif(strstr(finfo_file($finfo, $filename), 'image/webp')) {
+ } elseif(strstr(finfo_file($finfo, $filename), 'image/webp') !== false) {
122
$checkWebp = true;
123
$this->source_type = IMAGETYPE_WEBP;
124
0 commit comments