Fixed wrong password if file contained EOF char

This commit is contained in:
keplyx 2019-07-25 10:24:59 +02:00
parent 8484840bcf
commit da6314499b

View file

@ -40,7 +40,7 @@ class Dao
$file = fopen($real_path, "r") or die("Unable to open DB password file!");; $file = fopen($real_path, "r") or die("Unable to open DB password file!");;
$password = fgets($file); $password = fgets($file);
fclose($file); fclose($file);
return $password; return trim($password);
} }
public function get_score_team($team) public function get_score_team($team)