You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When filter is configured with mod_rewrite config and such config features a RewriteRule with a dash ("-") as to part, the rule is incorrectly handled.
ModRewriteConfLoader sets rule.to only when it's not equal to "-":
if (partCounter == 2 && !"-".equals(part)) {
rule.setTo(part);
}
in effect rule.to is null and in RuleBase:
if (StringUtils.isBlank(to) && setAttributes.size() == 0 && runs.size() == 0) {
addError("to is not valid because it is blank (it is allowed to be blank when there is a 'set' specified)");
} else if ("null".equalsIgnoreCase(to)) {
stopFilterChainOnMatch = true;
} else if ("-".equals(to)) {
noSubstitution = true;
}
the first if is executed, not the third.
The text was updated successfully, but these errors were encountered:
When filter is configured with mod_rewrite config and such config features a RewriteRule with a dash ("-") as to part, the rule is incorrectly handled.
ModRewriteConfLoader
setsrule.to
only when it's not equal to "-":in effect
rule.to
is null and inRuleBase
:the first if is executed, not the third.
The text was updated successfully, but these errors were encountered: