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 4406e81 commit c0d5b37Copy full SHA for c0d5b37
web/api/index.php
@@ -17,7 +17,7 @@
17
exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'", $output, $auth_code);
18
} else {
19
$key = '/usr/local/vesta/data/keys/' . basename($_POST['hash']);
20
- if (file_exists($key)) {
+ if (file_exists($key) && is_file($key)) {
21
$auth_code = '0';
22
}
23
0 commit comments