Improve support for invalid inputs provided to the resize filter.

This commit is contained in:
Luke Towers 2020-08-24 15:24:40 -06:00
parent 2126cd3a0b
commit 0eac129003
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ class ImageResizer
$resizer = new static($image, $width, $height, $options);
} catch (SystemException $ex) {
// Ignore processing this URL if the resizer is unable to identify it
if (is_string($image)) {
if (is_scalar($image)) {
return $image;
} elseif ($image instanceof FileModel) {
return $image->getPath();