From 4c8451acc26fc527bbdec4d573504bca1b879f53 Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Fri, 21 Feb 2014 12:34:42 +0200 Subject: [PATCH] allow space in uri --- src/groovy/org/grails/plugin/resource/ResourceProcessor.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/groovy/org/grails/plugin/resource/ResourceProcessor.groovy b/src/groovy/org/grails/plugin/resource/ResourceProcessor.groovy index 495b951..6c06486 100644 --- a/src/groovy/org/grails/plugin/resource/ResourceProcessor.groovy +++ b/src/groovy/org/grails/plugin/resource/ResourceProcessor.groovy @@ -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() } /**