Skip to content

Commit

Permalink
Improve support for invalid inputs provided to the resize filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Aug 24, 2020
1 parent 2126cd3 commit 0eac129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/classes/ImageResizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ public static function filterGetUrl($image, $width = null, $height = null, $opti
$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();
Expand Down

0 comments on commit 0eac129

Please sign in to comment.