From 6d734f23407b899e9d58fc7ef03c3092238eb089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20J=C3=B3zwik?= Date: Tue, 10 Feb 2015 23:17:59 +0100 Subject: [PATCH] Fix reserved set definition according to appendix A of RFC 3986 I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement. --- .../springframework/web/util/HierarchicalUriComponents.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java b/spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java index 3e880e75b4..028cdd410b 100644 --- a/spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java +++ b/spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -573,7 +573,7 @@ final class HierarchicalUriComponents extends UriComponents { * @see RFC 3986, appendix A */ protected boolean isReserved(char c) { - return isGenericDelimiter(c) || isReserved(c); + return isGenericDelimiter(c) || isSubDelimiter(c); } /**