symfony/symfony — pull request #9974 by iamluc (2014-01-08 14:36:40+00:00)
Title: [TwigBundle] Handle Exception during twig rendering

An Exception can be throw by twig during rendering an other exception (i.e. when using is_granted()).
This exception was not caught, and non-secure data were sent to the client.
With this commit, we fallback to a secure HTML file

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |