mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
parent
c6b6cb1a98
commit
1186185461
@ -11,7 +11,7 @@
|
||||
@if (HasText(mediaUrl)) {
|
||||
<div class="file-name">
|
||||
<em>@T("Filename:")</em>
|
||||
<span><a href="@mediaUrl">@Path.GetFileName(mediaUrl)</a></span>
|
||||
<span><a href="@mediaUrl">@HttpUtility.UrlDecode(Path.GetFileName(mediaUrl))</a></span>
|
||||
</div>
|
||||
}
|
||||
<div class="mime-type">
|
||||
|
@ -58,8 +58,10 @@ namespace Orchard.MediaProcessing.Services {
|
||||
|
||||
public string GetImageProfileUrl(string path, string profileName, FilterRecord customFilter, ContentItem contentItem) {
|
||||
|
||||
// path is the publicUrl of the media, so it might contain url-encoded chars
|
||||
|
||||
// try to load the processed filename from cache
|
||||
var filePath = _fileNameProvider.GetFileName(profileName, path);
|
||||
var filePath = _fileNameProvider.GetFileName(profileName, System.Web.HttpUtility.UrlDecode(path));
|
||||
bool process = false;
|
||||
|
||||
// if the filename is not cached, process it
|
||||
|
Loading…
Reference in New Issue
Block a user