forked from igniterealtime/Openfire
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OF-2628: Avoid polynomial regular expression used on uncontrolled data (
igniterealtime#2221) * OF-2628: Avoid polynomial regular expression used on uncontrolled data Prevent possibility of regular expression execution depending on user-provided values taking exceptionally long / many resources to complete This commit replaces the regular expression with a solution that doesn't use regular expressions. Arguably, the complexity of this code does not change much. * OF-2628: Add unit tests * Revert "OF-2628: Add unit tests" This reverts commit dc11312. --------- Co-authored-by: Dan Caseley <dan@caseley.me.uk>
- Loading branch information
1 parent
bdfe730
commit 9fea45d
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters