We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0037654 commit 4f64f71Copy full SHA for 4f64f71
event_dispatcher.rst
@@ -41,6 +41,8 @@ The most common way to listen to an event is to register an **event listener**::
41
// Customize your response object to display the exception details
42
$response = new Response();
43
$response->setContent($message);
44
+ // the exception message can contain unfiltered user input;
45
+ // set the content-type to text to avoid XSS issues
46
$response->headers->set('Content-Type', 'text/plain; charset=utf-8');
47
48
// HttpExceptionInterface is a special type of exception that
0 commit comments