symfony/symfony — pull request #5838 by jfcixmedia (2012-10-25 17:18:47+00:00)
Title: [Form] Fixed cannot unset string offsets in CsrfValidationListener

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
License of the code: MIT
Documentation PR: -

A php fatal error is happening when someone rewrite the entire form data for an object with a single input.
```
Fatal error: Cannot unset string offsets in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php on line 72
```

Example:

```html

Name

Text

Create

```

If someone alters the html to add a simple input at the bottom of the form like this one:
```html

```

The result will be a php fatal error.