Skip to content

Commit

Permalink
Content-Report-Table's space filtering is not enough restrictive #483
Browse files Browse the repository at this point in the history
  • Loading branch information
raphj committed Feb 26, 2025
1 parent bbabe17 commit 06c4448
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,9 @@ The result is the following :
#if($foreach.index > 0)
#set($statement = $statement + ' or ')
#end
#set($statement = $statement + "doc.space like :space$foreach.index")
#set($discard = $params.put("space$foreach.index", $space.replaceAll('([%_!])', '!$1').concat('%')))
#set($spaceVar = "space$foreach.index")
#set($statement = $statement + "doc.space = :$spaceVar or doc.space like concat(:$spaceVar, '.%') or doc.space like concat('%.', :$spaceVar) or doc.space like concat('%.', :$spaceVar, '.%')")
#set($discard = $params.put($spaceVar, $space))
#end
#set($statement = $statement + ')')
#end
Expand Down

0 comments on commit 06c4448

Please sign in to comment.