Permalink
Browse files

Bug #18877 - fix incorrect handling of backslashes on Linux

git-svn-id: https://svn.php.net/repository/pear/packages/Archive_Tar/trunk@323259 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent a2eb6be commit 52c56fca727cac561c35df78438e5da80ad876b7 @mrook mrook committed Feb 16, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Archive/Tar.php
View
@@ -1920,7 +1920,11 @@ function _pathReduction($p_dir)
}
}
}
- $v_result = strtr($v_result, '\\', '/');
+
+ if (defined('OS_WINDOWS') && OS_WINDOWS) {
+ $v_result = strtr($v_result, '\\', '/');
+ }
+
return $v_result;
}

0 comments on commit 52c56fc

Please sign in to comment.