Media Library now correctly handles files with a # character in their name, fixes #5421.

This commit is contained in:
Lombiq 2015-08-16 02:23:11 +02:00
parent 59b3d50e03
commit 6552735df3

View File

@ -20,7 +20,7 @@ namespace Orchard.MediaLibrary.Services {
private readonly IStorageProvider _storageProvider;
private readonly IEnumerable<IMediaFactorySelector> _mediaFactorySelectors;
private static char[] HttpUnallowed = new char[] { '<', '>', '*', '%', '&', ':', '\\', '?' };
private static char[] HttpUnallowed = new char[] { '<', '>', '*', '%', '&', ':', '\\', '?', '#' };
public MediaLibraryService(
IOrchardServices orchardServices,