Compare commits

...

2 Commits

2 changed files with 6 additions and 2 deletions

View File

@ -209,7 +209,11 @@ class InitActivities {
}
String name = ze.getName();
File f = new File(myDir + "/" + folder +"/" + name);
if (ze.isDirectory()) {
String canonicalPath = f.getCanonicalPath();
if (!canonicalPath.startsWith(myDir)) {
// If these don't match, there's a path-traversal possibility.
// So ignore it.
} else if (ze.isDirectory()) {
Util.d("Creating directory " + myDir + "/" + folder +"/" + name + " from resource");
f.mkdir();
} else {

View File

@ -17,4 +17,4 @@ POM_DEVELOPER_EMAIL=hankhill19580@gmail.com
ANDROID_BUILD_TARGET_SDK_VERSION=29
ANDROID_BUILD_SDK_VERSION=28
I2P_VERSION=1.6.0
I2P_VERSION=1.6.1