Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

removed the colon from the RESERVED_CHARS_PATTERN #2

Open
wants to merge 1 commit into
base: 12.0.4-up1
Choose a base branch
from
Open
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 @@ -31,7 +31,7 @@ public class ReservedCharValidator {
protected static final Logger logger = Logger.getLogger(ReservedCharValidator.class);

// https://tools.ietf.org/html/rfc3986#section-2.2
private static final Pattern RESERVED_CHARS_PATTERN = Pattern.compile("[:/?#@!$&()*+,;=\\[\\]\\\\]");
private static final Pattern RESERVED_CHARS_PATTERN = Pattern.compile("[/?#@!$&()*+,;=\\[\\]\\\\]");

// KEYCLOAK-14231 - Supported Locales: Three new characters were added on top of this RFC: "{", "}", "%"
private static final Pattern RESERVED_CHARS_LOCALES_PATTERN = Pattern.compile("[:/?#@!$&()*+,;=\\[\\]\\\\{}%]");
Expand Down