mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 16:14:16 +01:00 
			
		
		
		
	Remove check that path of file added to archive contains ':' or '\'
This commit is contained in:
		| @@ -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; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user