mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
UrlResource applies StringUtils.getFilename against cleaned URL path
Issue: SPR-15411
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user