Skip to content

Commit

Permalink
Merge pull request #379 from mashify/patch-1
Browse files Browse the repository at this point in the history
FIX: XSS bug
  • Loading branch information
tobyzerner committed Nov 9, 2014
2 parents 62bb6f2 + 6e2eef9 commit 1ddf6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/ETForm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public function input($name, $type = "text", $attributes = array())

// If this is a textarea, make some custom HTML.
if ($type == "textarea") {
$value = $attributes["value"];
$value = htmlentities($attributes["value"], ENT_NOQUOTES, "UTF-8");
unset($attributes["value"]);
$input = "<textarea".$this->getAttributes($attributes).">$value</textarea>";
}
Expand Down

0 comments on commit 1ddf6a7

Please sign in to comment.