From 1dcab1abe22dcfeaea26e72ca86888d1f32d37ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 28 May 2023 21:00:43 +0200 Subject: [PATCH] RVRNEXT-31 change logic of checking external assets --- src/View/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Linker.php b/src/View/Linker.php index 4cefbcc..b76890a 100644 --- a/src/View/Linker.php +++ b/src/View/Linker.php @@ -139,7 +139,7 @@ class Linker { $output = []; - if (preg_match('/^[\w\/\.]+$/', $asset) === 1) { + if (preg_match('/^http(s)?/', $asset) !== 1) { if ( empty($_ENV['DEV']) && filesize(ROOT . '/public/static/' . $asset) < self::INLINE_ASSET_LIMIT