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

Commit

Permalink
Pclzip: revert a problematic commit for Windows OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Feb 19, 2014
1 parent ee12e4e commit b549285
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/core/classes/pclzip.lib.php
Expand Up @@ -5441,7 +5441,11 @@ function PclZipUtilPathReduction($p_dir)
$v_skip--;
}
else {
$v_result = $v_list[$i].(( $i == 0 && $scheme)? "/" : "").($i!=(sizeof($v_list)-1)? "/".$v_result : "");
if(stripos(PHP_OS, "win") === 0){
$v_result = $v_list[$i].($i!=(sizeof($v_list)-1)? "/".$v_result : "");
}else{
$v_result = $v_list[$i].(( $i == 0 && $scheme)? "/" : "").($i!=(sizeof($v_list)-1)? "/".$v_result : "");
}
}
}
}
Expand Down

0 comments on commit b549285

Please sign in to comment.