mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-08-19 11:43:16 +02:00
🔒️ Sanitization of author name to prevent errors caused by quotes and double quotes
This commit is contained in:
@@ -8,6 +8,6 @@ class conf
|
||||
private pdo $pdo;
|
||||
|
||||
public function getPDO() : pdo {
|
||||
return new PDO('mysql:host=localhost;dbname=' . getenv('DBNAME'), getenv('USERNAME'), getenv('PASSWORD'));
|
||||
return new PDO('mysql:host=localhost;charset=UTF8;dbname=' . getenv('DBNAME'), getenv('USERNAME'), getenv('PASSWORD'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user