From da6314499b421ed41b81fe733b681da80819f742 Mon Sep 17 00:00:00 2001 From: keplyx Date: Thu, 25 Jul 2019 10:24:59 +0200 Subject: [PATCH] Fixed wrong password if file contained EOF char --- classes/dao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/dao.php b/classes/dao.php index 51f3b70..cf65cb1 100755 --- a/classes/dao.php +++ b/classes/dao.php @@ -40,7 +40,7 @@ class Dao $file = fopen($real_path, "r") or die("Unable to open DB password file!");; $password = fgets($file); fclose($file); - return $password; + return trim($password); } public function get_score_team($team)