From da8ca7bce5fb711d732c61334b7c2db56cd44a22 Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 22 Apr 2026 17:50:29 +0000 Subject: [PATCH] Merge fixes --- .../main/java/io/xpipe/app/cred/SecurityKeyStrategy.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/cred/SecurityKeyStrategy.java b/app/src/main/java/io/xpipe/app/cred/SecurityKeyStrategy.java index c0b1fe54c..d85cf7ed1 100644 --- a/app/src/main/java/io/xpipe/app/cred/SecurityKeyStrategy.java +++ b/app/src/main/java/io/xpipe/app/cred/SecurityKeyStrategy.java @@ -105,10 +105,10 @@ public class SecurityKeyStrategy implements SshIdentityKeyListStrategy { var file = securityKey.determineLibraryPath(sc); var key = SshIdentityStrategy.getPublicKeyPath(sc, publicKey); return List.of( - new KeyValue("PKCS11Provider", "\"" + file.toString() + "\""), - new KeyValue("IdentitiesOnly", key.isPresent() ? "yes" : "no"), - new KeyValue("IdentityFile", key.isPresent() ? key.get().toString() : "none"), - new KeyValue("IdentityAgent", "none")); + KeyValue.escape("PKCS11Provider", file.toString()), + KeyValue.raw("IdentitiesOnly", key.isPresent() ? "yes" : "no"), + KeyValue.escape("IdentityFile", key.isPresent() ? key.get().toString() : "none"), + KeyValue.raw("IdentityAgent", "none")); } @Override