Enable local xss cleaning in program admin for some fields
This commit is contained in:
@@ -61,8 +61,8 @@ class Programs extends Admin_Controller {
|
|||||||
|
|
||||||
if ($this->form_validation->run('programs/edit') === true) {
|
if ($this->form_validation->run('programs/edit') === true) {
|
||||||
$data = array(
|
$data = array(
|
||||||
'name' => $this->input->post('name'),
|
'name' => $this->input->post('name', true),
|
||||||
'config_template' => $_POST['config_template'],
|
'config_template' => $this->input->post('config_template', false),
|
||||||
);
|
);
|
||||||
if ($this->program->update($data, $programId)) {
|
if ($this->program->update($data, $programId)) {
|
||||||
$this->messages->add(sprintf(_("The program "%s" has been updated successfully"), $this->input->post('name')), 'success');
|
$this->messages->add(sprintf(_("The program "%s" has been updated successfully"), $this->input->post('name')), 'success');
|
||||||
|
|||||||
Reference in New Issue
Block a user