Browse Source

UrlResource applies StringUtils.getFilename against cleaned URL path

Issue: SPR-15411
pull/1377/head
Juergen Hoeller 8 years ago
parent
commit
702e01ad52
  1. 2
      spring-core/src/main/java/org/springframework/core/io/UrlResource.java

2
spring-core/src/main/java/org/springframework/core/io/UrlResource.java

@ -243,7 +243,7 @@ public class UrlResource extends AbstractFileResolvingResource { @@ -243,7 +243,7 @@ public class UrlResource extends AbstractFileResolvingResource {
*/
@Override
public String getFilename() {
return StringUtils.getFilename(this.url.getPath());
return StringUtils.getFilename(this.cleanedUrl.getPath());
}
/**

Loading…
Cancel
Save