Skip to content

Commit 241c569

Browse files
committed
Security: Remove on* attributes for input text fields
Fix advisory GHSA-gw58-89f7-4xgj
1 parent 2c779cb commit 241c569

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/inc/lib/formvalidator/FormValidator.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ public function addText($name, $label, $required = true, $attributes = [], $crea
217217

218218
$this->applyFilter($name, 'trim');
219219
$this->applyFilter($name, 'html_filter');
220+
$this->applyFilter($name, 'attr_on_filter');
221+
220222
if ($required) {
221223
$this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
222224
}

0 commit comments

Comments
 (0)