Please sign in to comment.
bug #22154 [WebProfilerBundle] Normalize whitespace in exceptions pas…
…sed in headers (curry684) This PR was merged into the 2.7 branch. Discussion ---------- [WebProfilerBundle] Normalize whitespace in exceptions passed in headers | Q | A | ------------- | --- | Branch? | 2.7 upwards | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22072 | License | MIT If an exception was thrown with line separators in its message the WebProfiler would cause an exception by passing it through unsanitized into the X-Debug-Error HTTP header. This commit fixes that by replacing all whitespace sequences with a single space in the header. Commits ------- d646790 [WebProfilerBundle] Normalize whitespace in exceptions passed in headers
- Loading branch information...
Showing with 22 additions and 1 deletion.