mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
UriComponentsBuilder handles invalid port correctly
See gh-26905
This commit is contained in:
committed by
Rossen Stoyanchev
parent
5811212a9f
commit
65797d04f2
@@ -85,7 +85,7 @@ public class UriComponentsBuilder implements UriBuilder, Cloneable {
|
||||
|
||||
private static final String HOST_PATTERN = "(" + HOST_IPV6_PATTERN + "|" + HOST_IPV4_PATTERN + ")";
|
||||
|
||||
private static final String PORT_PATTERN = "(\\d*(?:\\{[^/]+?})?)";
|
||||
private static final String PORT_PATTERN = "(.[^/]*(?:\\{[^/]+?})?)";
|
||||
|
||||
private static final String PATH_PATTERN = "([^?#]*)";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user