Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit ac4cba6f11512349e434b06b987aa49b46aa91da 1 parent fe9ec25
Frank Muehlschlegel authored
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 .= '/';
Please sign in to comment.
Something went wrong with that request. Please try again.