Remove check that path of file added to archive contains ':' or '\'

This commit is contained in:
Martin
2019-03-07 14:37:56 +01:00
parent 4d1d5b6771
commit 25de35faec

View File

@@ -3101,13 +3101,7 @@ static mz_bool mz_zip_writer_validate_archive_name(const char *pArchive_name)
if (*pArchive_name == '/') if (*pArchive_name == '/')
return MZ_FALSE; return MZ_FALSE;
while (*pArchive_name) /* Making sure the name does not contain drive letters or DOS style backward slashes is the responsibility of the program using miniz*/
{
if ((*pArchive_name == '\\') || (*pArchive_name == ':'))
return MZ_FALSE;
pArchive_name++;
}
return MZ_TRUE; return MZ_TRUE;
} }