mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-17 17:08:37 +00:00
Merge pull request #2328 from wallabag/avoid-duplicate-url
Avoid duplicate url with accents
This commit is contained in:
commit
92395680b6
2 changed files with 45 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