Fixing isset issue

This commit is contained in:
Stig Lindqvist 2013-11-13 15:08:53 +13:00
parent 4f94e6962e
commit a4930a099c
1 changed files with 4 additions and 1 deletions

View File

@ -115,7 +115,10 @@ class FilesystemPublisher extends StaticPublisher {
$filename = $urlSegment ? "$urlSegment.$this->fileExtension" : "index.$this->fileExtension";
if (Config::inst()->get('FilesystemPublisher', 'domain_based_caching')) {
if (!$urlParts) continue; // seriously malformed url here...
// seriously malformed url here...
if(!($urlParts && isset($urlParts['host']))) {
continue;
}
$filename = $urlParts['host'] . '/' . $filename;
}