1
Vote

FileFilterFactory.GetFilter extension list is not an array.

description

the FileFilterFactory.GetFilter operates on an array with one comma seperated string as opposed to a collection of extensions
the test condition should be:
if (ide.Key.ToString().ToUpperInvariant() == extension.ToUpperInvariant())
not
if (ide.Key.ToString().ToUpperInvariant().IndexOf(extension.ToUpperInvariant())>-1)
 
The existing code leads to issues where doc should not be included but docx should be included.

comments