Skip to content

Commit 7ec5c99

Browse files
committed
Update user info pattern
Closes gh-32211
1 parent 60035b5 commit 7ec5c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -77,7 +77,7 @@ public class UriComponentsBuilder implements UriBuilder, Cloneable {
7777

7878
private static final String HTTP_PATTERN = "(?i)(http|https):";
7979

80-
private static final String USERINFO_PATTERN = "([^@\\[/?#]*)";
80+
private static final String USERINFO_PATTERN = "([^@/?#]*)";
8181

8282
private static final String HOST_IPV4_PATTERN = "[^\\[/?#:]*";
8383

0 commit comments

Comments
 (0)