From f47c0915b150e4c5d2764f1b05c2d272476cf8de Mon Sep 17 00:00:00 2001 From: Elesei Date: Wed, 12 Dec 2018 11:37:48 +0200 Subject: [PATCH] Adding the ability to check both POST and GET variable --- modules/servers/solusvmpro/lib/SolusVM.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/servers/solusvmpro/lib/SolusVM.php b/modules/servers/solusvmpro/lib/SolusVM.php index 555c001..ec332a3 100644 --- a/modules/servers/solusvmpro/lib/SolusVM.php +++ b/modules/servers/solusvmpro/lib/SolusVM.php @@ -852,8 +852,8 @@ public function clientAreaCalculations($result) public function clientAreaCommands() { - - if ($_POST['logintosolusvm']) { + global $whmcs; + if ($whmcs->get_req_var('logintosolusvm') === 'Manage') { if ($this->getExtData("clientkeyauthreturnurl") != "") { $sysurl = $this->getExtData("clientkeyauthreturnurl");