mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Avoid XSS in Module templates
This commit is contained in:
parent
de49530fd1
commit
e833c318a5
@ -303,8 +303,8 @@ class ModuleTemplates extends HTML
|
||||
if (!empty($this->action)) {
|
||||
// Success variable.
|
||||
$success = false;
|
||||
$this->name = get_parameter('name', '');
|
||||
$this->description = get_parameter('description', '');
|
||||
$this->name = io_safe_input(strip_tags(io_safe_output((string) get_parameter('name'))));
|
||||
$this->description = io_safe_input(strip_tags(io_safe_output((string) get_parameter('description'))));
|
||||
$this->pen = get_parameter('pen', '');
|
||||
|
||||
switch ($this->action) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user