Skip to content

Commit fb58383

Browse files
committed
Refactor findByRoutePatternWithLangId method to use whereRaw for improved query safety
1 parent 579ef3f commit fb58383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/ContentService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function findByRoutePatternWithLangId($uri, $isDefaultRoutePattern, $isWe
3737
$query = $this
3838
->buildFindWithRouteQuery(
3939
fn ($q) => $q
40-
->where($q->qualifyColumn('uri'), $uri)
40+
->whereRaw('uri = ?', [$uri])
4141
->when($isDefaultRoutePattern != null, fn ($q) => $q->whereIsDefaultPattern())
4242
)
4343
->with($withRelations);

0 commit comments

Comments
 (0)