Skip to content

Commit ba50f4d

Browse files
committed
fix: Fixed local CDN gif bepass
1 parent f00c455 commit ba50f4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Cdn/Adapter/Filesystem.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public function url(string $filename, array $extra = []): string
7878
{
7979
if ($this->files->exists($filename) === false) {
8080
throw new \Exception("Unable to find a file at path [{$filename}].");
81+
} elseif (app('files')->extension($filename) === 'gif' && empty($extra)) {
82+
return $this->makeUrl($filename);
8183
}
8284

8385
return $this->validateImageAnd($filename, function (string $filename) use ($extra) {

0 commit comments

Comments
 (0)