Skip to content

Commit

Permalink
Merge pull request #1559 from ebkr/develop
Browse files Browse the repository at this point in the history
Develop - Release 3.1.54
  • Loading branch information
ebkr authored Nov 16, 2024
2 parents 2462817 + 9072fd4 commit a575b87
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
### 3.1.54
#### Bug fix
- Fixed profile import issue where entries were not found inside zips

### 3.1.53
#### Games added
- WEBFISHING
- SULFUR

#### Other changes
- BONELAB support should now function correctly
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "r2modman",
"version": "3.1.53",
"version": "3.1.54",
"description": "A simple and easy to use mod manager for many games using Thunderstore.",
"productName": "r2modman",
"author": "ebkr",
Expand Down
2 changes: 1 addition & 1 deletion src/_managerinf/ManagerInformation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VersionNumber from '../model/VersionNumber';

export default class ManagerInformation {
public static VERSION: VersionNumber = new VersionNumber('3.1.53');
public static VERSION: VersionNumber = new VersionNumber('3.1.54');
public static IS_PORTABLE: boolean = false;
public static APP_NAME: string = "r2modman";
}
4 changes: 2 additions & 2 deletions src/providers/generic/zip/AdmZipProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export default class AdmZipProvider extends ZipProvider {

async extractEntryTo(zip: string | Buffer, target: string, outputPath: string): Promise<void> {
const adm = new AdmZip(zip);
target = target.replace(/\\/g, '/');
const safeTarget = target.replace(/\\/g, '/');
outputPath = outputPath.replace(/\\/g, '/');
var fullPath = path.join(outputPath, target).replace(/\\/g, '/');
var fullPath = path.join(outputPath, safeTarget).replace(/\\/g, '/');
if(!path.posix.normalize(fullPath).startsWith(outputPath))
{
throw Error("Entry " + target + " would extract outside of expected folder");
Expand Down

0 comments on commit a575b87

Please sign in to comment.