Skip to content

Commit

Permalink
[BUGFIX] Treat $relativeUrl as json
Browse files Browse the repository at this point in the history
  • Loading branch information
langeland committed Dec 2, 2015
1 parent 2182815 commit dba2dc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function matchValue($requestPath)
->where('n.workspace = :workspace')
->setParameter('workspace', 'live')
->andWhere('n.properties LIKE :relativeUrl')
->setParameter('relativeUrl', '%"redirectUrl"%' . $relativeUrl . '%');
->setParameter('relativeUrl', '%"redirectUrl"%' . json_encode($relativeUrl) . '%');

$query = $queryBuilder->getQuery();
$nodes = $query->getResult();
Expand Down

0 comments on commit dba2dc4

Please sign in to comment.