Cleanup package files via GPM install to make them more windows-friendly #1361

This commit is contained in:
Andy Miller 2017-03-20 13:30:53 -06:00
parent 04e1710de1
commit da61196b7b
No known key found for this signature in database
GPG Key ID: E82B8D0EAB94EFB9
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
* Added `language_codes` to Twig init to allow for easy language name/code/native-name lookup
1. [](#bugfix)
* Simplified modular/twig processing logic and fixed an issue with system process config [#1351](https://github.com/getgrav/grav/issues/1351)
* Cleanup package files via GPM install to make them more windows-friendly [#1361](https://github.com/getgrav/grav/pull/1361)
* Fix for page-level debugger override changing the option site-wide
# v1.2.0-rc.2

View File

@ -563,6 +563,7 @@ class InstallCommand extends ConsoleCommand
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true, true);
$this->tmp = $tmp_dir . '/Grav-' . uniqid();
$filename = $package->slug . basename($package->zipball_url);
$filename = preg_replace('/[\\\\\/:"*?&<>|]+/mi', '-', $filename);
$query = '';
if ($package->premium) {