AddAnyFile
AddAnyFile copied to clipboard
Consider using a regex to test for invalid file paths
Hi Mads,
Thanks for the stream! As discussed consider using the following regex to test for the existence of system reserved names in directory names.
@"^(?!^(PRN|AUX|CLOCK$|NUL|CON|COM\d|LPT\d|..)(..+)?$)[^\x00-\x1f\?:"";|/]+$";