summaryrefslogtreecommitdiff
path: root/inc/TarLib.class.php
diff options
context:
space:
mode:
authorFrank Muehlschlegel <muehlsch@cs.uni-bonn.de>2008-11-30 15:07:38 +0100
committerFrank Muehlschlegel <muehlsch@cs.uni-bonn.de>2008-11-30 15:07:38 +0100
commitac4cba6f11512349e434b06b987aa49b46aa91da (patch)
treeb6befe57fa82a8528f918cab04c2d18bc474c5c2 /inc/TarLib.class.php
parentfe9ec250a6558c8352a35b6537cdc30d6c9f5477 (diff)
downloadrpg-ac4cba6f11512349e434b06b987aa49b46aa91da.tar.gz
rpg-ac4cba6f11512349e434b06b987aa49b46aa91da.tar.bz2
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
Diffstat (limited to 'inc/TarLib.class.php')
-rw-r--r--inc/TarLib.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/TarLib.class.php b/inc/TarLib.class.php
index 0f8f258de..24adddac7 100644
--- a/inc/TarLib.class.php
+++ b/inc/TarLib.class.php
@@ -824,7 +824,7 @@ $p_add, $p_rem);
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 .= '/';