Skip to content

Commit fecb8a8

Browse files
committed
fix(checkboxesfield): single quote rendering
Signed-off-by: btry <tbugier@teclib.com>
1 parent e4bbdb8 commit fecb8a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inc/fields/checkboxesfield.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public function displayField($canEdit = true) {
5555
$current_value = $this->value;
5656
echo "<div class='checkbox'>";
5757
echo Html::getCheckbox([
58-
'title' => $value,
58+
'title' => htmlentities($value, ENT_QUOTES),
5959
'id' => $domId.'_'.$i,
60-
'name' => $fieldName . '[]',
61-
'value' => $value,
60+
'name' => htmlentities($fieldName, ENT_QUOTES) . '[]',
61+
'value' => htmlentities($value, ENT_QUOTES),
6262
'zero_on_empty' => false,
6363
'checked' => in_array($value, $this->value)
6464
]);

0 commit comments

Comments
 (0)