mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-20 14:25:19 +00:00
This PR fixes an issue in the change I merged yesterday (#9921), which was reported by @quonb. Apology I verified the fix by testing a wide range of URL schemes: ``` echo "https://example.com" echo "http://example.com" echo "mailto:test@example.com" echo "ftp://example.com/file.txt" echo "file:/Users/you/file.txt" echo "ssh:user@example.com" echo "git://github.com/user/repo.git" echo "ssh://example.com/path" echo "tel:+12123456789" echo "ipns://example.com/path" echo "gemini://example.com/" echo "gopher://example.com/1menu" echo "news:comp.lang.zig" ```
This commit is contained in:
@@ -2048,6 +2048,12 @@ fn resolvePathForOpening(
|
||||
};
|
||||
|
||||
const resolved = try std.fs.path.resolve(self.alloc, &.{ terminal_pwd, path });
|
||||
|
||||
std.fs.accessAbsolute(resolved, .{}) catch {
|
||||
self.alloc.free(resolved);
|
||||
return null;
|
||||
};
|
||||
|
||||
return resolved;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user