1
0
Fork 0

Make sure we only replace complete paths to the base-dir/vendor-dir, not partial dir matches, fixes #5289

pull/5294/head
Jordi Boggiano 2016-05-05 14:57:07 +01:00
parent 591cbcee12
commit d1a0502f92
1 changed files with 4 additions and 4 deletions

View File

@ -725,11 +725,11 @@ HEADER;
$filesystem = new Filesystem(); $filesystem = new Filesystem();
$vendorPathCode = ' ' . $filesystem->findShortestPathCode(realpath($targetDir), $vendorPath, true, true) . " . '"; $vendorPathCode = ' ' . $filesystem->findShortestPathCode(realpath($targetDir), $vendorPath, true, true) . " . '/";
$appBaseDirCode = ' ' . $filesystem->findShortestPathCode(realpath($targetDir), $basePath, true, true) . " . '"; $appBaseDirCode = ' ' . $filesystem->findShortestPathCode(realpath($targetDir), $basePath, true, true) . " . '/";
$absoluteVendorPathCode = ' ' . substr(var_export($vendorDir, true), 0, -1); $absoluteVendorPathCode = ' ' . substr(var_export(rtrim($vendorDir, '\\/') . '/', true), 0, -1);
$absoluteAppBaseDirCode = ' ' . substr(var_export($baseDir, true), 0, -1); $absoluteAppBaseDirCode = ' ' . substr(var_export(rtrim($baseDir, '\\/') . '/', true), 0, -1);
$initializer = ''; $initializer = '';
$prefix = "\0Composer\Autoload\ClassLoader\0"; $prefix = "\0Composer\Autoload\ClassLoader\0";