summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Rowlands2018-05-11 22:20:15 (GMT)
committerLee Rowlands2018-05-11 22:21:27 (GMT)
commit2b331d00bfd1964c01aa85d6e8fb902a99c5217f (patch)
tree012294c3bc6027f92542bb13fdecbb528b553942
parent41dfad388cbdb43664003f420b516b07a70e713e (diff)
Issue #2854543 by Wim Leers, polynya, dawehner, mpdonadio, gabesullice, larowlan, klausi: NegotiationMiddleware calls $request->setRequestFormat('html') when there is no _format request parameter, but shouldn't
-rw-r--r--core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php b/core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php
index 7448e6f..8d14dd5 100644
--- a/core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php
+++ b/core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php
@@ -85,7 +85,7 @@ class RequestFormatRouteFilter implements FilterInterface {
$route_formats = !$route->hasRequirement('_format')
? ['html']
: explode('|', $route->getRequirement('_format'));
- return array_merge($carry,$route_formats);
+ return array_merge($carry, $route_formats);
}, []);
$formats = array_unique(array_filter($all_formats));