From b4a57c529f9167cd819b97b5816c74459832613d Mon Sep 17 00:00:00 2001 From: Jeremy Wootten Date: Wed, 16 Jul 2025 18:56:35 +0100 Subject: [PATCH] Fix path sanitization --- src/Widgets/TerminalWidget.vala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Widgets/TerminalWidget.vala b/src/Widgets/TerminalWidget.vala index 403eb1af34..b9ab81a668 100644 --- a/src/Widgets/TerminalWidget.vala +++ b/src/Widgets/TerminalWidget.vala @@ -848,8 +848,7 @@ namespace Terminal { } // Sanitize the path as we do not want the `file://` scheme included // and we assume dropped paths are absolute. - file = File.new_for_uri (Utils.sanitize_path (unquoted_uri, "", false)); - path = file.get_path (); + path = Utils.sanitize_path (unquoted_uri, "", false); if (path != null) { uris[i] = Shell.quote (path) + " "; } else {