UrlResource applies StringUtils.getFilename against cleaned URL path

Issue: SPR-15411
This commit is contained in:
Juergen Hoeller 2017-04-06 14:27:00 +02:00
parent 67ea4b3a05
commit 702e01ad52
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}
/**