From e96aa86cd15d2739130891b501d816305686de12 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Wed, 28 Apr 2021 18:16:08 +0200 Subject: [PATCH] Fix undefined constant error - fixes #115 --- var/www/html/files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/www/html/files.php b/var/www/html/files.php index 964771a..d164c5a 100644 --- a/var/www/html/files.php +++ b/var/www/html/files.php @@ -10,7 +10,7 @@ if(empty($_SESSION['sftp_pass'])){ exit; } $ssh=ssh2_connect('127.0.0.1') or die ('No Connection to SFTP server!'); -if(@!ssh2_auth_password($ssh, $user[system_account], $_SESSION['sftp_pass'])){ +if(@!ssh2_auth_password($ssh, $user['system_account'], $_SESSION['sftp_pass'])){ send_login(); exit; }