mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-08-08 07:40:39 -09:00
Merge branch 'GP-1_ghidra1_HeadlessURLFix' into patch
This commit is contained in:
@@ -291,18 +291,6 @@ public class HeadlessAnalyzer {
|
||||
Msg.warn(this, "REPORT: Nothing to do ... must specify files for import.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!path.endsWith("/")) {
|
||||
// force explicit folder path so that non-existent folders are created on import
|
||||
ghidraURL = new URI("ghidra", null, ghidraURL.getHost(), ghidraURL.getPort(),
|
||||
path + "/", null, null).toURL();
|
||||
}
|
||||
}
|
||||
else { // Running in -process mode
|
||||
if (path.endsWith("/") && path.length() > 1) {
|
||||
ghidraURL = new URI("ghidra", null, ghidraURL.getHost(), ghidraURL.getPort(),
|
||||
path.substring(0, path.length() - 1), null, null).toURL();
|
||||
}
|
||||
}
|
||||
|
||||
BundleHost bundleHost = GhidraScriptUtil.acquireBundleHostReference();
|
||||
|
||||
Reference in New Issue
Block a user