diff --git a/Subscriber/SlidingPaginationSubscriber.php b/Subscriber/SlidingPaginationSubscriber.php index b0cb5599..1458a85a 100755 --- a/Subscriber/SlidingPaginationSubscriber.php +++ b/Subscriber/SlidingPaginationSubscriber.php @@ -29,6 +29,11 @@ public function onKernelRequest(GetResponseEvent $event) $this->route = $request->attributes->get('_route'); $this->params = array_merge($request->query->all(), $request->attributes->get('_route_params', array())); + foreach ($this->params as $key => $param) { + if (substr($key, 0, 1) == '_') { + unset($this->params[$key]); + } + } } public function pagination(PaginationEvent $event)