Class SafeZipEntry

java.lang.Object
java.util.zip.ZipEntry
de.hybris.platform.util.zip.SafeZipEntry
All Implemented Interfaces:
Cloneable

public class SafeZipEntry extends ZipEntry
SafeZipEntry class that prevents Zip Slip vulnerability by disallowing ZipEntries with names that target outside directory, eg. ../foo.txt. In such cases de.hybris.platform.util.zip.UnsupportedZipEntryException is thrown.