Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SUTJael committed Mar 27, 2014
1 parent dd63f44 commit c174c2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/archive/archive.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class archive {

/**
* constructor
* This function is the constructor for the arcive class
* This function is the constructor for the archive class
*/
public function archive($name) {
$this->options = array (
Expand Down Expand Up @@ -643,6 +643,11 @@ function create_zip()
foreach ($current as $key => $value) {
debug_event("archive.lib.php", "Processing ".$key."[".$value."]...", "5");
}

if (function_exists('iconv')) {
// Fix encoding issue for zip archives
$current['name2'] = iconv('UTF-8', 'CP852', $current['name2']);
}

if ($current['name'] == $this->options['name'])
continue;
Expand Down

0 comments on commit c174c2b

Please sign in to comment.