Skip to content

Commit

Permalink
[HttpKernel] fixed content-type management for ESIs when charset is p…
Browse files Browse the repository at this point in the history
…art of the response content-type header
  • Loading branch information
fabpot committed Jul 26, 2010
1 parent be57358 commit 1caabe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Symfony/Components/HttpKernel/Cache/Esi.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public function process(Request $request, Response $response)
$type = 'text/html';
}

if (!in_array($type, $this->contentTypes)) {
$parts = implode(';', $type);
if (!in_array($parts[0], $this->contentTypes)) {
return $response;
}

Expand Down

1 comment on commit 1caabe1

@alexandresalome
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ici ça n'est pas implode qu'il faut utiliser mais explode

Please sign in to comment.