mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
#12 Logfile::addLogFile() does not escape the given parameters
This commit is contained in:
parent
b02da95c2f
commit
e6960f0030
@ -253,15 +253,12 @@ class Logfile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(is_array($meldung)) {
|
|
||||||
$meldung = print_r($meldung, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$module = $this->app->DB->real_escape_string($module);
|
$module = $this->app->DB->real_escape_string(is_scalar($module) ? strval($module) : print_r($module, true));
|
||||||
$action = $this->app->DB->real_escape_string($action);
|
$action = $this->app->DB->real_escape_string(is_scalar($action) ? strval($action) : print_r($action, true));
|
||||||
$meldung = $this->app->DB->real_escape_string($meldung);
|
$meldung = $this->app->DB->real_escape_string(is_scalar($meldung) ? strval($meldung) : print_r($meldung, true));
|
||||||
$dump = $this->app->DB->real_escape_string($dump);
|
$dump = $this->app->DB->real_escape_string(is_scalar($dump) ? strval($dump) : print_r($dump, true));
|
||||||
$functionname = $this->app->DB->real_escape_string($functionname);
|
$functionname = $this->app->DB->real_escape_string(is_scalar($functionname) ? strval($functionname) : print_r($functionname, true));
|
||||||
|
|
||||||
$this->app->DB->Insert(
|
$this->app->DB->Insert(
|
||||||
sprintf(
|
sprintf(
|
||||||
|
Loading…
Reference in New Issue
Block a user