Skip to content

Commit

Permalink
Forms: add line ending normalization to \n
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 30, 2013
1 parent 9211661 commit 3079a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nette/Forms/Controls/TextBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract class TextBase extends BaseControl
*/
public function setValue($value)
{
$this->value = is_array($value) ? '' : (string) $value;
$this->value = is_array($value) ? '' : str_replace("\r\n", "\n", $value);
return $this;
}

Expand Down

0 comments on commit 3079a95

Please sign in to comment.