aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSébastien Viande <sviande@gmail.com>2017-09-25 19:34:42 +0200
committerSébastien Viande <sviande@gmail.com>2017-10-12 07:38:27 +0200
commitfafdf1711705fd11a370ae65bfe2278a8fb788f2 (patch)
tree828c34aa0652dbf0c164496be05ca9e87817e4a7 /src
parentf44a927530476eaf903525481e5e8114c3b017b8 (diff)
downloadwallabag-fafdf1711705fd11a370ae65bfe2278a8fb788f2.tar.gz
wallabag-fafdf1711705fd11a370ae65bfe2278a8fb788f2.tar.zst
wallabag-fafdf1711705fd11a370ae65bfe2278a8fb788f2.zip
Fix #3361 check type for tags in entry repository
Check is $tags is a string before explode
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 05f0e0ba..b5e35eff 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -151,7 +151,7 @@ class EntryRepository extends EntityRepository
151 $qb->andWhere('e.updatedAt > :since')->setParameter('since', new \DateTime(date('Y-m-d H:i:s', $since))); 151 $qb->andWhere('e.updatedAt > :since')->setParameter('since', new \DateTime(date('Y-m-d H:i:s', $since)));
152 } 152 }
153 153
154 if ('' !== $tags) { 154 if (is_string($tags) && '' !== $tags) {
155 foreach (explode(',', $tags) as $i => $tag) { 155 foreach (explode(',', $tags) as $i => $tag) {
156 $entryAlias = 'e' . $i; 156 $entryAlias = 'e' . $i;
157 $tagAlias = 't' . $i; 157 $tagAlias = 't' . $i;