Skip to content

Commit d53ec8e

Browse files
authored
Web Asset Manager loads CSS from Joomla ROOT (#40409)
1 parent 52d9fcc commit d53ec8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/WebAsset/WebAssetItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,6 @@ protected function isPathExternal(string $path): bool
338338
protected function isPathAbsolute(string $path): bool
339339
{
340340
// We have a full path or not
341-
return is_file(JPATH_ROOT . '/' . $path);
341+
return strpos($path, '/') !== false && is_file(JPATH_ROOT . '/' . $path);
342342
}
343343
}

0 commit comments

Comments
 (0)