Skip to content

Commit acef492

Browse files
committedJan 21, 2015
WW-4448 Replaces spaces with encoded value
1 parent d9973fe commit acef492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/main/java/org/apache/struts2/dispatcher/ServletRedirectResult.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ protected boolean isPathUrl(String url) {
276276
if (url.contains("?")) {
277277
rawUrl = url.substring(0, url.indexOf("?"));
278278
}
279-
URI uri = URI.create(rawUrl);
279+
URI uri = URI.create(rawUrl.replaceAll(" ", "%20"));
280280
if (uri.isAbsolute()) {
281281
URL validUrl = uri.toURL();
282282
if (LOG.isDebugEnabled()) {

0 commit comments

Comments
 (0)
Please sign in to comment.