Skip to content

Commit

Permalink
When appending glide filename consider that the extension may have ch…
Browse files Browse the repository at this point in the history
…anged
  • Loading branch information
ryanmitchell committed Dec 1, 2023
1 parent 8a60959 commit 257167c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Imaging/GlideManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public function server(array $config = [])

$cachePath .= '/'.Str::beforeLast($filename, '.').'/'.Str::of($path)->after('/');

if ($extension = ($params['fm'] ?? false)) {
$cachePath = Str::beforeLast($cachePath, '.').'.'.$extension;
}

return $cachePath;
});
}
Expand Down

0 comments on commit 257167c

Please sign in to comment.