Skip to content

Commit 540d48e

Browse files
authored
CAMEL-23222: Filter inbound Camel headers in MailHeaderFilterStrategy
Add setInFilterStartsWith(CAMEL_FILTER_STARTS_WITH) to MailHeaderFilterStrategy to prevent external sources from injecting Camel-prefixed headers on inbound messages.
1 parent 9fb941c commit 540d48e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

components/camel-mail/src/main/java/org/apache/camel/component/mail/MailHeaderFilterStrategy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ protected void initialize() {
2828
setLowerCase(true);
2929
// filter headers begin with "Camel" or "org.apache.camel"
3030
setOutFilterStartsWith(CAMEL_FILTER_STARTS_WITH);
31+
setInFilterStartsWith(CAMEL_FILTER_STARTS_WITH);
3132
}
3233

3334
}

0 commit comments

Comments
 (0)