From fef832c88b69815a1cc0c423ea552149857a31ba Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 25 Jul 2017 12:32:12 +0200 Subject: [PATCH] Fixed handling of placeholders --- .../install/files/lib/system/devtools/pip/DevtoolsPip.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php index 90b335490c..9722880a6d 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php @@ -311,7 +311,7 @@ class DevtoolsPip extends DatabaseObjectDecorator { default: if (strpos($defaultFilename, '*') !== false) { - $filename = str_replace('*', $target, $defaultFilename); + $filename = preg_replace('~\*.*$~', $target, $defaultFilename); $tar->registerFile($filename, $project->path . $filename); } else { -- 2.20.1