Ghidra is a software reverse engineering (SRE) framework
ghidra: fixed paths with spaces unable to be imported into ghidra
xyve2ae69686ad97
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/framework/main/datatree/LinuxFileUrlHandler.java b/Ghidra/Features/Base/src/main/java/ghidra/framework/main/datatree/LinuxFileUrlHandler.javaindex a2a3eb7e52..d5c678b9da 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/framework/main/datatree/LinuxFileUrlHandler.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/framework/main/datatree/LinuxFileUrlHandler.java@@ -61,7 +61,9 @@ public final class LinuxFileUrlHandler extends AbstractFileListFlavorHandler {return toFiles(transferData, s -> {try {- return new File(new URL(s).toURI());+ // Replacing the spaces with "%20" will allow for file paths with spaces to be parsed correctly+ // and not cause an exception+ return new File(new URL(s.replaceAll(" ", "%20")).toURI());}catch (MalformedURLException e) {// this could be the case that this handler is attempting to process an arbitrary