Allow - in filename safety check.

master
Richard Stanway 2013-02-04 17:33:22 -05:00
parent 8987f06940
commit 6dfdfbf088
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ BOOL IsSafeFilename(CTSTR path)
while (*p)
{
if (!isalnum(*p) && *p != '.' && *p != '/' && *p != '_')
if (!isalnum(*p) && *p != '.' && *p != '/' && *p != '_' && *p != '-')
return FALSE;
p++;
}