mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-15 21:53:59 +03:00
fix(updater): remove single&double quotes escaping in updater dialog … (#4047)
This commit is contained in:
parent
615f48dee0
commit
0180dcc812
5
.changes/updater-note-body-escape.md
Normal file
5
.changes/updater-note-body-escape.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Fix updater dialog removing single and double quotes from the release notes
|
@ -848,8 +848,6 @@ async fn prompt_for_install<R: Runtime>(
|
||||
body: &str,
|
||||
pubkey: String,
|
||||
) -> Result<()> {
|
||||
// remove single & double quote
|
||||
let escaped_body = body.replace(&['\"', '\''][..], "");
|
||||
let windows = update.app.windows();
|
||||
let parent_window = windows.values().next();
|
||||
|
||||
@ -865,7 +863,7 @@ Would you like to install it now?
|
||||
|
||||
Release Notes:
|
||||
{}"#,
|
||||
app_name, update.version, update.current_version, escaped_body,
|
||||
app_name, update.version, update.current_version, body,
|
||||
),
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user