RVRNEXT-31 change logic of checking external assets
All checks were successful
soko-web/pipeline/pr-master This commit looks good

This commit is contained in:
Bence Pőcze 2023-05-28 21:00:43 +02:00
parent bda12177eb
commit 1dcab1abe2
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

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