diff --git a/CHANGELOG.md b/CHANGELOG.md index 17515015a..a93728224 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ 1. [](#improved) * Updated bundled JQuery to latest version `3.5.1` + * Forward a `sid` to GPM when downloading a premium package via CLI 1. [](#bugfix) * Fixed hardcoded system folder in blueprints, config and language streams * Added `.htaccess` rule to block attempts to use Twig in the request URL diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index 8d544d4c7..97ebfed62 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -445,7 +445,7 @@ class InstallCommand extends ConsoleCommand } else { $repo_dir = $matches[2]; } - + $paths = (array) $paths; foreach ($paths as $repo) { $path = rtrim($repo, '/') . '/' . $repo_dir; @@ -570,7 +570,8 @@ class InstallCommand extends ConsoleCommand [ 'slug' => $package->slug, 'filename' => $package->premium['filename'], - 'license_key' => $license + 'license_key' => $license, + 'sid' => md5(GRAV_ROOT) ] ));