From 9d4665dbcac67d54c7c7e62690979580ce4c7349 Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Sat, 15 Oct 2022 15:21:39 +0200 Subject: [PATCH] Advanced settings: fix escaping single quotes Ref #486 --- src/OptionsPopup.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OptionsPopup.qml b/src/OptionsPopup.qml index 89bf544..fba57b0 100644 --- a/src/OptionsPopup.qml +++ b/src/OptionsPopup.qml @@ -570,7 +570,7 @@ Popup { firstrun += s+"\n" } function escapeshellarg(arg) { - return "'"+arg.replace(/'/g, "\\'")+"'" + return "'"+arg.replace(/'/g, "'\"'\"'")+"'" } function addCloudInit(s) { cloudinit += s+"\n"