diff --git a/Cargo.lock b/Cargo.lock index 51e6450..df9ff92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -78,7 +78,7 @@ dependencies = [ [[package]] name = "alfis" -version = "0.6.8" +version = "0.6.9" dependencies = [ "base64", "bincode", diff --git a/Cargo.toml b/Cargo.toml index 8387758..dcf8cce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alfis" -version = "0.6.8" +version = "0.6.9" authors = ["Revertron "] edition = "2018" build = "build.rs" diff --git a/src/web_ui.rs b/src/web_ui.rs index 3674980..6ad82f2 100644 --- a/src/web_ui.rs +++ b/src/web_ui.rs @@ -359,6 +359,7 @@ fn load_domains(context: &mut MutexGuard, handle: &Handle<()>) { //debug!("Domains: {:?}", &domains.values()); for (_identity, (domain, timestamp, data)) in domains { let d = serde_json::to_string(&data).unwrap(); + let d = d.replace("'", "\\'"); let command = format!("addMyDomain('{}', {}, {}, '{}');", &domain, timestamp, timestamp + DOMAIN_LIFETIME, &d); let _ = handle.dispatch(move |web_view|{ web_view.eval(&command)