Merge pull request 'RVRNEXT-31 change logic of checking external assets' (#24) from bugfix/RVRNEXT-31-allow-special-characters-for-local-assets into master

Reviewed-on: #24
This commit is contained in:
bence committed 2023-05-28 21:13:20 +02:00
commit ca52db99b4
1 file changed
+1 -1
+1 -1
View File
@@ -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