diff --git a/Blacklight/NZB.php b/Blacklight/NZB.php index bd0adb4d1..10a542687 100755 --- a/Blacklight/NZB.php +++ b/Blacklight/NZB.php @@ -263,7 +263,7 @@ class NZB $nzbPath = ''; for ($i = 0; $i < $levelsToSplit && $i < 32; $i++) { - $nzbPath .= $releaseGuid[$i].DS; + $nzbPath .= $releaseGuid[$i].'/'; } $nzbPath = $this->siteNzbPath.$nzbPath; diff --git a/Blacklight/NZBExport.php b/Blacklight/NZBExport.php index 381be786d..58a487f15 100755 --- a/Blacklight/NZBExport.php +++ b/Blacklight/NZBExport.php @@ -145,7 +145,7 @@ class NZBExport } // Create a path to store the new NZB files. - $currentPath = $path.$this->safeFilename($group['name']).DS; + $currentPath = $path.$this->safeFilename($group['name']).'/'; if (! File::isDirectory($currentPath) && ! File::makeDirectory($currentPath) && ! File::isDirectory($currentPath)) { throw new \RuntimeException(sprintf('Directory "%s" was not created', $currentPath)); } diff --git a/Blacklight/processing/post/ProcessAdditional.php b/Blacklight/processing/post/ProcessAdditional.php index 5ef8cd35f..302b90f75 100755 --- a/Blacklight/processing/post/ProcessAdditional.php +++ b/Blacklight/processing/post/ProcessAdditional.php @@ -782,7 +782,7 @@ class ProcessAdditional protected function _createTempFolder(): bool { // Per release defaults. - $this->tmpPath = $this->_mainTmpPath.$this->_release->guid.DS; + $this->tmpPath = $this->_mainTmpPath.$this->_release->guid.'/'; if (! File::isDirectory($this->tmpPath)) { if (! File::makeDirectory($this->tmpPath, 0777, true, false) && ! File::isDirectory($this->tmpPath)) { $this->_echo('Unable to create directory: '.$this->tmpPath, 'warning'); diff --git a/Blacklight/utility/Utility.php b/Blacklight/utility/Utility.php index e69aa8f87..bde03b4ef 100755 --- a/Blacklight/utility/Utility.php +++ b/Blacklight/utility/Utility.php @@ -31,10 +31,10 @@ class Utility public static function canExecuteRead($path) { $paths = explode('#/#', $path); - $fullPath = DS; + $fullPath = '/'; foreach ($paths as $singlePath) { if ($singlePath !== '') { - $fullPath .= $singlePath.DS; + $fullPath .= $singlePath.'/'; if (! is_readable($fullPath) || ! is_executable($fullPath)) { return "The '$fullPath' directory must be readable and executable by all .".PHP_EOL; }