Skip to content

Commit 79ef3d9

Browse files
committed
ACP2E-923: Compact strategy causes an invalid reference to an external domain when running SCD
1 parent b9c1ee5 commit 79ef3d9

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Deploy/Package/Processor/PreProcessor

1 file changed

+1
-1
lines changed

app/code/Magento/Deploy/Package/Processor/PreProcessor/Css.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function isLocal(string $path): bool
131131
$pattern = '{^(file://(?!//)|/(?!/)|/?[a-z]:[\\\\/]|\.\.[\\\\/]|[a-z0-9_.-]+[\\\\/])}i';
132132
$result = preg_match($pattern, $path);
133133

134-
return (bool) $result;
134+
return is_int($result) ? (bool) $result : true;
135135
}
136136

137137
/**

0 commit comments

Comments
 (0)