🔒️ Sanitization of author name to prevent errors caused by quotes and double quotes

This commit is contained in:
Florian Sylvain
2021-10-31 00:17:31 +02:00
parent 3464719c02
commit 794f4094c9
2 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -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'));
}
}