Skip to content

Commit 35e8864

Browse files
committed
select: escape label
1 parent de5653f commit 35e8864

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.4.2
2+
3+
## Bugfixes
4+
5+
- Select now escapes label again. (backported from 1.5)
6+
17
# 1.4.1
28

39
## Bugfixes

src/lib/FormSelect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function add($value, $text, $attr=array()) {
6868
$attr['selected'] = 'selected';
6969
}
7070
$attr['value'] = $value;
71-
71+
$text = htmlspecialchars($text);
7272
$this->options[] = "<option " . $this->serialize_attr($attr) . ">$text</option>";
7373
}
7474

0 commit comments

Comments
 (0)