mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Media Library now correctly handles files with a # character in their name, fixes #5421.
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Orchard.MediaLibrary.Services {
|
|||||||
private readonly IStorageProvider _storageProvider;
|
private readonly IStorageProvider _storageProvider;
|
||||||
private readonly IEnumerable<IMediaFactorySelector> _mediaFactorySelectors;
|
private readonly IEnumerable<IMediaFactorySelector> _mediaFactorySelectors;
|
||||||
|
|
||||||
private static char[] HttpUnallowed = new char[] { '<', '>', '*', '%', '&', ':', '\\', '?' };
|
private static char[] HttpUnallowed = new char[] { '<', '>', '*', '%', '&', ':', '\\', '?', '#' };
|
||||||
|
|
||||||
public MediaLibraryService(
|
public MediaLibraryService(
|
||||||
IOrchardServices orchardServices,
|
IOrchardServices orchardServices,
|
||||||
|
Reference in New Issue
Block a user