From: Sébastien Viande Date: Thu, 12 Oct 2017 05:28:42 +0000 (+0200) Subject: Fix #3361 Entry Rest controller getEntries cast tags params to string X-Git-Tag: 2.3.0~31^2~3^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=0978bd849e77b1157b21f8e231965521e535bacd;p=github%2Fwallabag%2Fwallabag.git Fix #3361 Entry Rest controller getEntries cast tags params to string --- diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php index 86e72335..6f161a08 100644 --- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php +++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php @@ -102,7 +102,7 @@ class EntryRestController extends WallabagRestController $order = $request->query->get('order', 'desc'); $page = (int) $request->query->get('page', 1); $perPage = (int) $request->query->get('perPage', 30); - $tags = $request->query->get('tags', ''); + $tags = is_array($request->query->get('tags')) ? '' : (string) $request->query->get('tags', ''); $since = $request->query->get('since', 0); /** @var \Pagerfanta\Pagerfanta $pager */