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
We change the order in which `FormattedMessage` checks the format of the
provided pattern: we first check for the presence of `{}` placeholders
and only then for `java.util.Format` specifiers.
This eliminates the need for a potentially exponential regular
expression evalutation, which was reported by Spotbugs (#1849).
The Javadoc and documentation were improved to clarify the heuristic
used by `FormattedMessage`.
Closes#1223.
Remark: since `FormattedMessage` used the **same** regular expression as
`java.util.Format`, if a message uses `java.util.Format` specifiers, it
is still vulnerable to a ReDOS.
0 commit comments