Skip to content
Browse files

Fix tgz extraction bug on Windows Systems

This patch fixes a problem in the TarLib when running on Windows-Systems.

darcs-hash:20081130140738-ed43e-4cd9586d41184911f968a9fd860b2bec821d7db6.gz
  • Loading branch information...
1 parent fe9ec25 commit ac4cba6f11512349e434b06b987aa49b46aa91da Frank Muehlschlegel committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 inc/TarLib.class.php
View
2 inc/TarLib.class.php
@@ -824,7 +824,7 @@ function _writeFooter()
function _extractList($p_to, $p_files, $p_remdir, $p_mode = 0755)
{
- if (!$p_to || ($p_to[0]!="/"&&substr($p_to,0,3)!="../"&&substr($p_to,1,3)!=":\\")) /*" // <- PHP Coder bug */
+ if (!$p_to || ($p_to[0]!="/"&&substr($p_to,0,3)!="../"&&substr($p_to,1,2)!=":\\")) /*" // <- PHP Coder bug */
$p_to = "./$p_to";
if ($p_remdir && substr($p_remdir,-1)!='/') $p_remdir .= '/';

0 comments on commit ac4cba6

Please sign in to comment.
Something went wrong with that request. Please try again.