#12 Logfile::addLogFile() does not escape the given parameters

This commit is contained in:
Roland Rusch 2023-07-19 15:18:04 +02:00
parent 9994f8c18d
commit b02da95c2f

View File

@ -254,11 +254,14 @@ class Logfile {
}
}
if(is_array($meldung)) {
$meldung = $this->app->DB->real_escape_string(print_r($meldung, true));
$meldung = print_r($meldung, true);
}
// Quick fix
$dump = $this->app->DB->real_escape_string(print_r($dump, true));
$module = $this->app->DB->real_escape_string($module);
$action = $this->app->DB->real_escape_string($action);
$meldung = $this->app->DB->real_escape_string($meldung);
$dump = $this->app->DB->real_escape_string($dump);
$functionname = $this->app->DB->real_escape_string($functionname);
$this->app->DB->Insert(
sprintf(