We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a3d5d5 commit 24f6561Copy full SHA for 24f6561
1 file changed
app/Router.php
@@ -61,7 +61,8 @@ protected function injectWebSocketScript(string $html): string
61
62
protected function isStaticFile(string $path): bool
63
{
64
- return in_array(pathinfo($path, PATHINFO_EXTENSION), ['css', 'js', 'png', 'jpg', 'jpeg', 'gif', 'svg']);
+ 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();
66
}
67
68
protected function escape(string $path): string
0 commit comments