Skip to content

Commit 83b9aed

Browse files
committed
Fixed issue ocpsoft#89
The RequestParamater condition added by the ParameterHandler was matching ANY query parameter. Ups.
1 parent 75638bf commit 83b9aed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎config-annotations/src/main/java/org/ocpsoft/rewrite/annotation/handler/ParameterHandler.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void process(FieldContext context, org.ocpsoft.rewrite.annotation.Paramet
9393
* corresponding query parameter. We must make sure that
9494
* the condition is evaluated even if the existing part of the tree evaluates to true.
9595
*/
96-
Condition requestParameter = RequestParameter.matches("{name}", "{" + param + "}");
96+
Condition requestParameter = RequestParameter.matches(param, "{" + param + "}");
9797
ConditionBuilder composite = context.getRuleBuilder().getConditionBuilder().and(
9898
Or.any(requestParameter, new True()));
9999
context.getRuleBuilder().when(composite);

0 commit comments

Comments
 (0)