Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERALERT authored Nov 18, 2022
1 parent 4dec146 commit e994186
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Picocrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,13 +942,8 @@ func work() {
}

// Open a temporary .zip for writing
file, err := os.CreateTemp("", "*.zip")
if err != nil { // Error, fall back to output folder
inputFile = strings.TrimSuffix(outputFile, ".pcv")
file, err = os.Create(inputFile)
} else { // No issues, use the temporary .zip
inputFile = file.Name()
}
inputFile = strings.TrimSuffix(outputFile, ".pcv")
file, err := os.Create(inputFile)
if err != nil { // Make sure file is writable
accessDenied("Write")
return
Expand Down

0 comments on commit e994186

Please # to comment.