Closed raray closed 8 months ago
The code in master does not match what I see installed with version 3.5.10 in composer so I'm not sure how to link to the line. What I see for lines 19-21 in craft/vendor/servd/craft-asset-storage/src/StaticCache/Ledge.php is this:
master
3.5.10
craft/vendor/servd/craft-asset-storage/src/StaticCache/Ledge.php
foreach ($urls as $url) { $urlParts = parse_url($url); if($urlParts['path'] == '' || $urlParts['path'] == '/') {
That if statement will error if the URL passed has no path, such as https://mysite.com since path will not be set as an index. The line should be:
if
https://mysite.com
path
if(empty($urlParts['path']) || $urlParts['path'] == '/') {
Just released an update to fix this for all Craft versions 👍
The code in
master
does not match what I see installed with version3.5.10
in composer so I'm not sure how to link to the line. What I see for lines 19-21 incraft/vendor/servd/craft-asset-storage/src/StaticCache/Ledge.php
is this:That
if
statement will error if the URL passed has no path, such ashttps://mysite.com
sincepath
will not be set as an index. The line should be: