Fixed handling of placeholders
authorAlexander Ebert <ebert@woltlab.com>
Tue, 25 Jul 2017 10:32:12 +0000 (12:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 25 Jul 2017 10:32:19 +0000 (12:32 +0200)
wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php

index 90b335490c71856ac2e086277ab07b741fb264ce..9722880a6d1ddd445fa7de43571c9f0928a3d1dc 100644 (file)
@@ -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 {