Skip to content

Commit

Permalink
Fixes #639: mapping mime types to extensions via registry could make …
Browse files Browse the repository at this point in the history
…problems
  • Loading branch information
muratcakir committed Mar 2, 2015
1 parent f28a991 commit 3cd8702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Libraries/SmartStore.Core/IO/MimeTypes.cs
Expand Up @@ -40,7 +40,7 @@ public static string MapMimeTypeToExtension(string mimeType)
result = value != null ? value.ToString().Trim('.') : null;
}
}
catch (SecurityException)
catch
{
string[] parts = mimeType.Split('/');
result = parts[parts.Length - 1];
Expand Down

0 comments on commit 3cd8702

Please sign in to comment.