From 47d6ff255d5f6100bc3c6b899055f94373ffbc07 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 13 Jan 2013 22:10:41 +0100 Subject: [PATCH] Reverted 6235bc0 --- wcfsetup/install/files/lib/system/io/TarWriter.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/io/TarWriter.class.php b/wcfsetup/install/files/lib/system/io/TarWriter.class.php index 9056f0b03a..4538beb6f7 100644 --- a/wcfsetup/install/files/lib/system/io/TarWriter.class.php +++ b/wcfsetup/install/files/lib/system/io/TarWriter.class.php @@ -143,8 +143,8 @@ class TarWriter extends Tar { protected function addFile($filename, $addDir, $removeDir) { $filename = FileUtil::unifyDirSeperator($filename); $storedFilename = $filename; - if (!empty($removeDir)) $storedFilename = StringUtil::replaceIgnoreCase(FileUtil::addTrailingSlash($removeDir), '', $filename); - if (!empty($addDir)) $storedFilename = FileUtil::addTrailingSlash($addDir) . FileUtil::removeLeadingSlash($storedFilename); + if (!empty($removeDir)) $storedFilename = StringUtil::replaceIgnoreCase($removeDir, '', $filename); + if (!empty($addDir)) $storedFilename = $addDir . $storedFilename; if (is_file($filename)) { // open file -- 2.20.1