Skip to content

Commit

Permalink
Encode checkbox value to prevent XSS attack (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosvini authored and claar committed Aug 20, 2019
1 parent d8cf68f commit 81f0969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Former/Traits/Checkable.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ protected function createCheckable($item, $fallbackValue = 1)
}

// Create field
$field = Input::create($this->checkable, $name, $value, $attributes);
$field = Input::create($this->checkable, $name, Helpers::encode($value), $attributes);
if ($this->isChecked($item, $value)) {
$field->checked('checked');
}
Expand Down

0 comments on commit 81f0969

Please sign in to comment.