Skip to content

Commit

Permalink
Merge pull request #3 from mocdk/bugfix-jsonencode
Browse files Browse the repository at this point in the history
[BUGFIX] Treat $relativeUrl as json
  • Loading branch information
aertmann committed Dec 2, 2015
2 parents 2182815 + dba2dc4 commit 4269f7f
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 4269f7f

Please sign in to comment.