mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 12:06:57 +08:00
GP-0: Cleanup
This commit is contained in:
+1
-3
@@ -61,9 +61,7 @@ public final class LinuxFileUrlHandler extends AbstractFileListFlavorHandler {
|
|||||||
|
|
||||||
return toFiles(transferData, s -> {
|
return toFiles(transferData, s -> {
|
||||||
try {
|
try {
|
||||||
// Replacing the spaces with "%20" will allow for file paths with spaces to be parsed correctly
|
return new File(new URL(s.replaceAll(" ", "%20")).toURI()); // fixup spaces
|
||||||
// and not cause an exception
|
|
||||||
return new File(new URL(s.replaceAll(" ", "%20")).toURI());
|
|
||||||
}
|
}
|
||||||
catch (MalformedURLException e) {
|
catch (MalformedURLException e) {
|
||||||
// this could be the case that this handler is attempting to process an arbitrary
|
// this could be the case that this handler is attempting to process an arbitrary
|
||||||
|
|||||||
Reference in New Issue
Block a user