mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-13 05:27:36 +02:00
fix: tighten up detectPossibleDirectoryTraversal for Windows
This commit is contained in:

committed by
Connor Tumbleson

parent
0a9ec3427b
commit
ea391dcd79
@ -95,10 +95,7 @@ public class BrutIO {
|
||||
}
|
||||
|
||||
public static boolean detectPossibleDirectoryTraversal(String entry) {
|
||||
if (OSDetection.isWindows()) {
|
||||
return entry.contains("..\\") || entry.contains("\\..");
|
||||
}
|
||||
return entry.contains("../") || entry.contains("/..");
|
||||
return entry.contains("../") || entry.contains("/..") || entry.contains("..\\") || entry.contains("\\..");
|
||||
}
|
||||
|
||||
public static String adaptSeparatorToUnix(String path) {
|
||||
|
Reference in New Issue
Block a user