Browse Source

Fix issue with ssh keys

Jaap Marcus 4 years ago
parent
commit
f7085cfec0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web/delete/key/index.php

+ 2 - 2
web/delete/key/index.php

@@ -12,12 +12,12 @@ if ((!isset($_GET['token'])) || ($_SESSION['token'] != $_GET['token'])) {
 }
 
 if (($_SESSION['userContext'] === 'admin') && (!empty($_GET['user']))) {
-    $v_user = $_GET['user'];
+    $user = $_GET['user'];
 }
 
 if (!empty($_GET['key'])) {
     $v_key = escapeshellarg(trim($_GET['key']));
-    $v_user = escapeshellarg(trim($v_user));
+    $v_user = escapeshellarg(trim($user));
     exec (HESTIA_CMD."v-delete-user-ssh-key ".$v_user." ".$v_key);
     check_return_code($return_var,$output);
 }