We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9677a03 + 81fb7b0 commit 2266135Copy full SHA for 2266135
web/delete/key/index.php
@@ -6,7 +6,9 @@
6
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
7
8
if (($_SESSION['user'] == 'admin') && (!empty($_GET['user']))) {
9
- $user=$_GET['user'];
+ $v_user=$_GET['user'];
10
+}else{
11
+ $v_user = $user;
12
}
13
14
// Check token
@@ -18,7 +20,6 @@
18
20
if (!empty($_GET['key'])) {
19
21
$v_key = escapeshellarg(trim($_GET['key']));
22
$v_user = escapeshellarg(trim($v_user));
- $v_key = str_replace('/','\\/', $v_key);
23
exec (HESTIA_CMD."v-delete-user-ssh-key ".$v_user." ".$v_key);
24
check_return_code($return_var,$output);
25
0 commit comments