forked from wallabag/wallabag
Fix #3361 check type for tags in entry repository
Check is $tags is a string before explode
This commit is contained in:
@ -151,7 +151,7 @@ class EntryRepository extends EntityRepository
|
|||||||
$qb->andWhere('e.updatedAt > :since')->setParameter('since', new \DateTime(date('Y-m-d H:i:s', $since)));
|
$qb->andWhere('e.updatedAt > :since')->setParameter('since', new \DateTime(date('Y-m-d H:i:s', $since)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('' !== $tags) {
|
if (is_string($tags) && '' !== $tags) {
|
||||||
foreach (explode(',', $tags) as $i => $tag) {
|
foreach (explode(',', $tags) as $i => $tag) {
|
||||||
$entryAlias = 'e' . $i;
|
$entryAlias = 'e' . $i;
|
||||||
$tagAlias = 't' . $i;
|
$tagAlias = 't' . $i;
|
||||||
|
|||||||
Reference in New Issue
Block a user