mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-10-19 04:53:51 +02:00
🔒️ Sanitization of author name to prevent errors caused by quotes and double quotes
This commit is contained in:
1 parent
3464719c02
commit
794f4094c9
2 files changed
+16
-9
No files matched your search
@@ -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