Skip to content

Commit

Permalink
allow space in uri
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Feb 21, 2014
1 parent ba6500f commit 4c8451a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -397,7 +397,7 @@ class ResourceProcessor implements InitializingBean {

static String normalizeUri(String uri) {
// File is used just for normalization, it won't be used for resolving the resource
new File(new URI('file:///' + uri).normalize().toASCIIString().toURL().toURI()).getPath()
new File(new URI('file:///' + uri.replaceAll(' ', '%20')).normalize().toASCIIString().toURL().toURI()).getPath()
}

/**
Expand Down

0 comments on commit 4c8451a

Please sign in to comment.