3

Closed

ExtractSelectedEntries breaks for filenames that include parens

description

I have the following website code which extracts one file from a zip file, but appears to be having problems if there are parens () in the file name. Here is a code fragment.
 
strFileName = "003Monthly Charges 01-2011 (updated).xls"
 
ObjUnZip.ExtractSelectedEntries("name = '" & strFileName & "'", "", MapPath(Report_Export_Path),
ExtractExistingFileAction.OverwriteSilently)
 
This code works for file names with spaces in the name, but does not extract if there are parens.
 
I've confirmed this is a Bug in the FileSelector logic, in particular in the NormalizeCriteriaExpression() method.
Closed Jun 20, 2011 at 9:25 PM by Cheeso
fixed in changeset 79511. The first version that will have this change is v1.9.1.6

comments