mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing that detecting the extension works regardless of casing
but it still works with Azure Blob Storage (which is case-sensitive) too
This commit is contained in:
@@ -85,7 +85,7 @@ namespace Orchard.MediaProcessing.Filters {
|
||||
}
|
||||
|
||||
var src = GetAttributeValue(imgTag, "src");
|
||||
var ext = string.IsNullOrEmpty(src) ? null : Path.GetExtension(src);
|
||||
var ext = string.IsNullOrEmpty(src) ? null : Path.GetExtension(src).ToLowerInvariant();
|
||||
var width = GetAttributeValueInt(imgTag, "width");
|
||||
var height = GetAttributeValueInt(imgTag, "height");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user