Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2013-2016 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC.
*/
package org.opends.server.authorization.dseecompat;

Expand Down Expand Up @@ -137,9 +138,12 @@ public static TargAttrFilters decode(EnumTargetOperator type,
//This pattern is built dynamically and is used to see if the operations
//in the two filter list parts (if the second exists) are equal. See
//comment below.
// firstOp is captured from the (add|del) group of keywordFullPattern, so it can
// only ever be the literal "add" or "del". Quote it defensively before embedding it
// into another regular expression to avoid any regex-injection into opPattern.
String opPattern=
"[,]{1}" + ZERO_OR_MORE_WHITESPACE +
firstOp + ZERO_OR_MORE_WHITESPACE + EQUAL_SIGN +
Pattern.quote(firstOp) + ZERO_OR_MORE_WHITESPACE + EQUAL_SIGN +
ZERO_OR_MORE_WHITESPACE;
String[] temp=subExpression.split(opPattern);
/*
Expand Down
Loading