RVRNEXT-31 change logic of checking external assets #24

Merged
bence merged 1 commits from bugfix/RVRNEXT-31-allow-special-characters-for-local-assets into master 2023-05-28 21:13:20 +02:00
Showing only changes of commit 1dcab1abe2 - Show all commits

View File

@ -139,7 +139,7 @@ class Linker
{ {
$output = []; $output = [];
if (preg_match('/^[\w\/\.]+$/', $asset) === 1) { if (preg_match('/^http(s)?/', $asset) !== 1) {
if ( if (
empty($_ENV['DEV']) && empty($_ENV['DEV']) &&
filesize(ROOT . '/public/static/' . $asset) < self::INLINE_ASSET_LIMIT filesize(ROOT . '/public/static/' . $asset) < self::INLINE_ASSET_LIMIT