#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)) { if(is_array($meldung)) {
$meldung = $this->app->DB->real_escape_string(print_r($meldung, true)); $meldung = print_r($meldung, true);
} }
// Quick fix $module = $this->app->DB->real_escape_string($module);
$dump = $this->app->DB->real_escape_string(print_r($dump, true)); $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( $this->app->DB->Insert(
sprintf( sprintf(