mirror of
				https://github.com/getgrav/grav-plugin-admin.git
				synced 2025-11-03 20:05:53 +01:00 
			
		
		
		
	Forward a sid to GPM when downloading a premium package
				
					
				
			This commit is contained in:
		@@ -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)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user