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

Commit

Permalink
Removing double encoding to fix 1252
Browse files Browse the repository at this point in the history
  • Loading branch information
ghecquet committed Nov 21, 2016
1 parent 67c037a commit e2c684a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/src/plugins/access.fs/FsAccessDriver.php
Expand Up @@ -2385,7 +2385,7 @@ public function nodeWillChange($node, $newSize = null)
*/
public function makeZip (UserSelection $selection, $dest, $basedir, $taskId = null)
{
$zipEncoding = ConfService::getContextConf($selection->getContext(), "ZIP_ENCODING");


@set_time_limit(0);
require_once(AJXP_BIN_FOLDER."/lib/pclzip.lib.php");
Expand All @@ -2398,10 +2398,6 @@ public function makeZip (UserSelection $selection, $dest, $basedir, $taskId = nu
$filePaths[] = [PCLZIP_ATT_FILE_NAME => $realFile];
} else {
$shortName = $node->getLabel();
if(!empty($zipEncoding)){
$test = iconv(TextEncoder::getEncoding(), $zipEncoding, $shortName);
if($test !== false) $shortName = $test;
}
$filePaths[] = [PCLZIP_ATT_FILE_NAME => $realFile,
PCLZIP_ATT_FILE_NEW_SHORT_NAME => $shortName];
}
Expand Down

0 comments on commit e2c684a

Please sign in to comment.