forked from rebillar/site-accueil-insa
Fixed wrong password if file contained EOF char
This commit is contained in:
parent
8484840bcf
commit
da6314499b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue