Enable local xss cleaning in program admin for some fields

This commit is contained in:
Eike Foken
2011-09-28 19:34:58 +02:00
parent a055653785
commit 117220d3ce

View File

@@ -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');