|
@@ -80,8 +80,8 @@ class WebController extends Controller
|
|
|
if ($req->getRequestFormat() !== 'json') {
|
|
|
return $this->render('PackagistWebBundle:Web:search.html.twig', [
|
|
|
'packages' => [],
|
|
|
- 'tags' => (array) $tagsFilter,
|
|
|
- 'type' => $typeFilter,
|
|
|
+ 'tags' => array_map('htmlentities', (array) $tagsFilter),
|
|
|
+ 'type' => htmlentities($typeFilter),
|
|
|
]);
|
|
|
}
|
|
|
|