summaryrefslogtreecommitdiff
path: root/inc/TarLib.class.php
diff options
context:
space:
mode:
authorhakan.sandell <hakan.sandell@mydata.se>2009-04-28 19:20:25 +0200
committerhakan.sandell <hakan.sandell@mydata.se>2009-04-28 19:20:25 +0200
commit345f6ba6cf2c50cbc0c83c5bc55e87fdfb32f843 (patch)
tree673648a3cfebdf98dfeb464108cc0bb3f15e25d1 /inc/TarLib.class.php
parent3720374187983255e877d9c4c93185f45e43cb37 (diff)
downloadrpg-345f6ba6cf2c50cbc0c83c5bc55e87fdfb32f843.tar.gz
rpg-345f6ba6cf2c50cbc0c83c5bc55e87fdfb32f843.tar.bz2
Windows path handling error in TarLib.class
darcs-hash:20090428172025-9a5f4-adf1e1a58cc35066d019490c1dc8fb9b264e376c.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 91f707e4b..ab802163b 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,2)!=":\\")) /*" // <- PHP Coder bug */
+ if (!$p_to || ($p_to[0]!="/"&&substr($p_to,0,3)!="../"&&substr($p_to,1,3)!=":\\"&&substr($p_to,1,2)!=":/")) /*" // <- PHP Coder bug */
$p_to = "./$p_to";
if ($p_remdir && substr($p_remdir,-1)!='/') $p_remdir .= '/';