Remove check that path of file added to archive contains ':' or '\'
This commit is contained in:
parent
4d1d5b6771
commit
25de35faec
@ -3101,13 +3101,7 @@ static mz_bool mz_zip_writer_validate_archive_name(const char *pArchive_name)
|
||||
if (*pArchive_name == '/')
|
||||
return MZ_FALSE;
|
||||
|
||||
while (*pArchive_name)
|
||||
{
|
||||
if ((*pArchive_name == '\\') || (*pArchive_name == ':'))
|
||||
return MZ_FALSE;
|
||||
|
||||
pArchive_name++;
|
||||
}
|
||||
/* Making sure the name does not contain drive letters or DOS style backward slashes is the responsibility of the program using miniz*/
|
||||
|
||||
return MZ_TRUE;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user