Forward a sid to GPM when downloading a premium package

This commit is contained in:
Djamil Legato
2020-10-29 15:25:40 -07:00
parent 4e45a22837
commit a8bd391b78
2 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
1. [](#improved) 1. [](#improved)
* Auto-link a plugin/theme license in details if it starts with `http` * Auto-link a plugin/theme license in details if it starts with `http`
* Allow to fallback to `docs:` instead of `readme:` * Allow to fallback to `docs:` instead of `readme:`
* Forward a `sid` to GPM when downloading a premium package
1. [](#bugfix) 1. [](#bugfix)
* Fixed Safari issue with new ACL picker field [#1955](https://github.com/getgrav/grav-plugin-admin/issues/1955) * Fixed Safari issue with new ACL picker field [#1955](https://github.com/getgrav/grav-plugin-admin/issues/1955)

View File

@@ -293,7 +293,8 @@ class Gpm
if ($package->premium) { if ($package->premium) {
$query = \json_encode(array_merge($package->premium, [ $query = \json_encode(array_merge($package->premium, [
'slug' => $package->slug, 'slug' => $package->slug,
'license_key' => $license 'license_key' => $license,
'sid' => md5(GRAV_ROOT)
])); ]));
$query = '?d=' . base64_encode($query); $query = '?d=' . base64_encode($query);