提交 702e01ad 编写于 作者: J Juergen Hoeller

UrlResource applies StringUtils.getFilename against cleaned URL path

Issue: SPR-15411
上级 67ea4b3a
......@@ -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());
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册