Skip to content

Commit 24f6561

Browse files
committed
wip
1 parent 8a3d5d5 commit 24f6561

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/Router.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ protected function injectWebSocketScript(string $html): string
6161

6262
protected function isStaticFile(string $path): bool
6363
{
64-
return in_array(pathinfo($path, PATHINFO_EXTENSION), ['css', 'js', 'png', 'jpg', 'jpeg', 'gif', 'svg']);
64+
return in_array(pathinfo($path, PATHINFO_EXTENSION), ['css', 'js', 'png', 'jpg', 'jpeg', 'gif', 'svg', 'woff', 'woff2', 'ttf', 'eot'])
65+
&& $this->finder->name($this->escape($path))->hasResults();
6566
}
6667

6768
protected function escape(string $path): string

0 commit comments

Comments
 (0)