Skip to content

Commit

Permalink
fix(checkboxedfield): single quote rendering
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 15, 2018
1 parent 13ad9dc commit 888b13f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/fields/checkboxesfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public function displayField($canEdit = true) {
$current_value = null;
$current_value = $this->getValue();
echo "<div class='checkbox'>";
echo Html::getCheckbox(['title' => $value,
echo Html::getCheckbox(['title' => htmlentities($value, ENT_QUOTES),
'id' => 'formcreator_field_'.$this->fields['id'].'_'.$i,
'name' => 'formcreator_field_'.$this->fields['id'] . '[]',
'value' => $value,
'value' => htmlentities($value, ENT_QUOTES),
'zero_on_empty' => false,
'checked' => (!empty($current_value) && in_array($value, $current_value))]);
echo '<label for="formcreator_field_'.$this->fields['id'].'_'.$i.'">';
Expand Down

0 comments on commit 888b13f

Please sign in to comment.