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.
1 parent 9c59a69 commit 512283eCopy full SHA for 512283e
web/api/index.php
@@ -14,7 +14,8 @@
14
15
$v_user = escapeshellarg($_POST['user']);
16
$v_password = escapeshellarg($_POST['password']);
17
- exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'", $output, $auth_code);
+ $v_ip_addr = escapeshellarg($_SERVER["REMOTE_ADDR"]);
18
+ exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$v_ip_addr."'", $output, $auth_code);
19
} else {
20
$key = '/usr/local/vesta/data/keys/' . basename($_POST['hash']);
21
if (file_exists($key) && is_file($key)) {
0 commit comments