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

Commit

Permalink
Fix PowerFS charset problems
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Mar 15, 2014
1 parent 17861c9 commit 2a73425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/action.powerfs/class.PowerFSController.php
Expand Up @@ -148,15 +148,15 @@ public function switchAction($action, $httpVars, $fileVars)
}
}
$cmdSeparator = ((PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows")? "&" : ";");
$archiveName = $httpVars["archive_name"];
$archiveName = SystemTextEncoding::fromUTF8($httpVars["archive_name"]);
if (!$compressLocally) {
$archiveName = AJXP_Utils::getAjxpTmpDir()."/".$httpVars["ope_id"]."_".$archiveName;
}
chdir($rootDir);
$cmd = $this->getFilteredOption("ZIP_PATH")." -r ".escapeshellarg($archiveName)." ".implode(" ", $args);
$fsDriver = AJXP_PluginsService::getInstance()->getUniqueActivePluginForType("access");
$c = $fsDriver->getConfigs();
if (!isSet($c["SHOW_HIDDEN_FILES"]) || $c["SHOW_HIDDEN_FILES"] == false) {
if ((!isSet($c["SHOW_HIDDEN_FILES"]) || $c["SHOW_HIDDEN_FILES"] == false) && stripos(PHP_OS, "win") === false) {
$cmd .= " -x .\*";
}
$cmd .= " ".$cmdSeparator." echo ZIP_FINISHED";
Expand Down

0 comments on commit 2a73425

Please sign in to comment.