installer: security improvements

This commit is contained in:
Taras Machyshyn
2014-10-09 13:11:25 +03:00
parent d2669dba5e
commit 7cfc539ce9
7 changed files with 91 additions and 38 deletions
+4
View File
@@ -122,6 +122,10 @@ class SystemHelper extends \Espo\Core\Utils\System
protected function getMysqlSetting($name, \PDO $pdoConnection)
{
if (!method_exists($pdoConnection, 'prepare')) {
return null;
}
$sth = $pdoConnection->prepare("SHOW VARIABLES LIKE '" . $name . "'");
$sth->execute();
$res = $sth->fetch(PDO::FETCH_NUM);