Skip to content

Commit 120ea0a

Browse files
committed
Update user info pattern
Closes gh-32211
1 parent c46d628 commit 120ea0a

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-2023 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.
@@ -76,7 +76,7 @@ public class UriComponentsBuilder implements UriBuilder, Cloneable {
7676

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

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

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

0 commit comments

Comments
 (0)