Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit b27137d

Browse files
committed
Use DIRECTORY_SEPARATOR in powerfs plugin for operation_id file.
1 parent 8dca193 commit b27137d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/plugins/action.powerfs/class.PowerFSController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function switchAction($action, $httpVars, $fileVars)
9999

100100
case "postcompress_download":
101101

102-
$archive = AJXP_Utils::getAjxpTmpDir()."/".$httpVars["ope_id"]."_".$httpVars["archive_name"];
102+
$archive = AJXP_Utils::getAjxpTmpDir().DIRECTORY_SEPARATOR.$httpVars["ope_id"]."_".$httpVars["archive_name"];
103103
$fsDriver = AJXP_PluginsService::getInstance()->getUniqueActivePluginForType("access");
104104
if (is_file($archive)) {
105105
register_shutdown_function("unlink", $archive);
@@ -163,7 +163,7 @@ public function switchAction($action, $httpVars, $fileVars)
163163
$cmdSeparator = ((PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows")? "&" : ";");
164164
//$archiveName = SystemTextEncoding::fromUTF8($httpVars["archive_name"]);
165165
if (!$compressLocally) {
166-
$archiveName = AJXP_Utils::getAjxpTmpDir()."/".$httpVars["ope_id"]."_".$archiveName;
166+
$archiveName = AJXP_Utils::getAjxpTmpDir().DIRECTORY_SEPARATOR.$httpVars["ope_id"]."_".$archiveName;
167167
}
168168
chdir($rootDir);
169169
$cmd = $this->getFilteredOption("ZIP_PATH")." -r ".escapeshellarg($archiveName)." ".implode(" ", $args);

0 commit comments

Comments
 (0)