Compare commits
2 Commits
android-1.
...
android-1.
Author | SHA1 | Date | |
---|---|---|---|
84e73a693c | |||
c0ad7dfc09 |
@ -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 {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user