From fb2e7dfe1272a41c64cd7997c802923ef9b742c4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 8 Jun 2015 22:03:08 +0200 Subject: [PATCH] utf8_decode file name in zip file --- inc/inc.ClassDownloadMgr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/inc.ClassDownloadMgr.php b/inc/inc.ClassDownloadMgr.php index 8b8ee4e16..005d0ffa4 100644 --- a/inc/inc.ClassDownloadMgr.php +++ b/inc/inc.ClassDownloadMgr.php @@ -85,7 +85,7 @@ class SeedDMS_Download_Mgr { $reviewStatus = $item->getReviewStatus(); $approvalStatus = $item->getApprovalStatus(); - $zip->addFile($dms->contentDir.$item->getPath(), $prefixdir."/".$document->getID()."-".$item->getOriginalFileName()); + $zip->addFile($dms->contentDir.$item->getPath(), utf8_decode($prefixdir."/".$document->getID()."-".$item->getOriginalFileName())); $sheet->setCellValueByColumnAndRow(0, $i, $document->getID()); $sheet->setCellValueByColumnAndRow(1, $i, $document->getID()."-".$item->getOriginalFileName()); $sheet->setCellValueByColumnAndRow(2, $i, getOverallStatusText($status['status']));