Skip to content

Commit

Permalink
Add escaping for formInput type attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Dec 3, 2024
1 parent 09d7e39 commit bbce27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/helpers/FormInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function formInput($name, $value = null, $attribs = null)
unset($attribs['type']);
}

$xhtml = '<input type="' . $type . '"'
$xhtml = '<input type="' . $this->view->escape($type) . '"'
. ' name="' . $this->view->escape($name) . '"'
. ($id === '' ? '' : ' id="' . $this->view->escape($id) . '"')
. ' value="' . $this->view->escape($value) . '"'
Expand Down

0 comments on commit bbce27e

Please sign in to comment.