Skip to content

Commit 0180dcc

Browse files
authored
fix(updater): remove single&double quotes escaping in updater dialog … (#4047)
1 parent 615f48d commit 0180dcc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.changes/updater-note-body-escape.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Fix updater dialog removing single and double quotes from the release notes

core/tauri/src/updater/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -848,8 +848,6 @@ async fn prompt_for_install<R: Runtime>(
848848
body: &str,
849849
pubkey: String,
850850
) -> Result<()> {
851-
// remove single & double quote
852-
let escaped_body = body.replace(&['\"', '\''][..], "");
853851
let windows = update.app.windows();
854852
let parent_window = windows.values().next();
855853

@@ -865,7 +863,7 @@ Would you like to install it now?
865863
866864
Release Notes:
867865
{}"#,
868-
app_name, update.version, update.current_version, escaped_body,
866+
app_name, update.version, update.current_version, body,
869867
),
870868
);
871869

0 commit comments

Comments
 (0)