Skip to content

Commit

Permalink
v3.2.18-rc6
Browse files Browse the repository at this point in the history
updated a check for parent-path parsing in file browser data
  • Loading branch information
its-a-feature committed Feb 19, 2024
1 parent d130595 commit b6f6032
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.2.18-rc6] - 2024-02-19

### Changed

- Added another check for parsing paths for when a parent_path for the file browser is reported as "path\path"

## [3.2.18-rc5] - 2024-02-16

### Changed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.18-rc5
3.2.18-rc6
8 changes: 5 additions & 3 deletions mythic-docker/src/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ func SplitFilePathGetHost(parentPath string, currentPath string, additionalPaths
} else if strings.Contains(currentPath, "/") {
returnedPathInfo.PathSeparator = "/"
} else {
// unable to determine, so assuming parent path is windodws
// unable to determine, so assuming parent path is windows
returnedPathInfo.PathSeparator = "\\"
}
} else {
err := errors.New(fmt.Sprintf("invalid absolute path format: %s", parentPath))
return returnedPathInfo, err
// treat this as if this is a windows path with this being the name of an unknown share
returnedPathInfo.PathSeparator = "\\"
stringSplit := strings.Split(parentPath, "\\")
returnedPathInfo.PathPieces = append(stringSplit[:], returnedPathInfo.PathPieces...)
}
// remove potential blank spots from pathPieces
if SliceContains(returnedPathInfo.PathPieces, "") {
Expand Down

0 comments on commit b6f6032

Please sign in to comment.