mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
Avoid duplicate url with accents
This commit is contained in:
parent
c4bf7af96f
commit
19ca0b2f35
2 changed files with 36 additions and 1 deletions
|
@ -281,7 +281,7 @@ class EntryRepository extends EntityRepository
|
|||
public function findByUrlAndUserId($url, $userId)
|
||||
{
|
||||
$res = $this->createQueryBuilder('e')
|
||||
->where('e.url = :url')->setParameter('url', $url)
|
||||
->where('e.url = :url')->setParameter('url', urldecode($url))
|
||||
->andWhere('e.user = :user_id')->setParameter('user_id', $userId)
|
||||
->getQuery()
|
||||
->getResult();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue