]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix #3361 Entry Rest controller getEntries cast tags params to string 3362/head
authorSébastien Viande <sviande@gmail.com>
Thu, 12 Oct 2017 05:28:42 +0000 (07:28 +0200)
committerSébastien Viande <sviande@satisfactory.fr>
Fri, 13 Oct 2017 08:28:05 +0000 (10:28 +0200)
src/Wallabag/ApiBundle/Controller/EntryRestController.php

index 86e723351c696db1bcc09788710499cf2bafb704..6f161a081eb436431a26d7854988e1c6d3b7cb6c 100644 (file)
@@ -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 */