Comments (3)
Thanks for the report. May you submit a failing test case to the repo? I've seen a few iterations of this bug and never really track it down.
Since I can't really accept a patch that just hard-codes assets/Assets
- it must be some case sensitive changes we can do?
from apktool.
Thanks for the report. May you submit a failing test case to the repo? I've seen a few iterations of this bug and never really track it down.
Since I can't really accept a patch that just hard-codes
assets/Assets
- it must be some case sensitive changes we can do?
@Test
public void validAssetsFileTest() throws IOException, BrutException {
File asset = new File(sTmpDir, "assets");
if (!asset.exists()) {
asset.mkdirs();
}
File Asset = new File(asset, "Assets");
if (!Asset.exists()) {
Asset.mkdirs();
}
TestUtils.copyResourceDir(UnknownDirectoryTraversalTest.class, "util/traversal", asset);
String validFilename = BrutIO.sanitizeFilepath(asset, "assets/file");
assertEquals(validFilename, "assets/file");
}
![image](https://private-user-images.githubusercontent.com/8817374/320477473-2eadd6af-9f2c-41e7-ada3-4d5221fc7902.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc1MTIxMjcsIm5iZiI6MTcxNzUxMTgyNywicGF0aCI6Ii84ODE3Mzc0LzMyMDQ3NzQ3My0yZWFkZDZhZi05ZjJjLTQxZTctYWRhMy00ZDUyMjFmYzc5MDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MDRUMTQzNzA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Yzk3ZGZiZjQ4OThkZTdlNTgwMmE1ZDQwODQzZGJjZTg4MDFhMTFmNjU3NGViNjQ4MTc2M2I4MzUxOTc1ZTE5NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.EH4NhDG5oNogvnIXTPlLEYu0re7Y10UpItkMmOE-SB8)
from apktool.
thanks. I'll take a look with this sample.
from apktool.
Related Issues (20)
- "error: expected enum but got (raw string) 1" HOT 1
- [BUG] Add all classes*.dex to doNotCompress HOT 4
- [BUG] Incorrect default setting of minSdkVersion HOT 2
- [BUG]Hello, I am suffering from the problem of not being able to integrate Payload with the Android application. I searched on several sites and did not find the solution, Knowing that I installed the version and it did not work every time I was asked to install 2.9.2 HOT 2
- Error while unpacking an .apk HOT 6
- [BUG] Error parsing styled strings HOT 1
- Reproducible Builds - Part 2 HOT 1
- [BUG] apktool d xx.apk generate minSdkVersion and targetSdkVersion as empty '', but aapt not HOT 10
- [BUG]apktool d xx.apk generate packageInfo.renameManifestPackage as empty '' HOT 3
- [BUG]
- [BUG] Couldn't Find Library, crash after recompiling without modify HOT 2
- [BUG] can't recompile the file HOT 1
- [BUG] Error while recompiling because of exceed the method references limitation HOT 1
- Unable to compile shadowJar and other issues HOT 4
- [BUG] HOT 1
- [BUG] HOT 1
- [BUG]I HAVE BEEN FACING THIS ISSUE FOR SO LONG HOT 2
- Please explain "-m" further HOT 5
- . HOT 1
- [BUG]Encoding using AAPT/AAPT2 Failed! / Compile Failed ! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apktool.