diff --git a/Cargo.lock b/Cargo.lock index 6721ccea34..5241a4f078 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4644,9 +4644,9 @@ checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" [[package]] name = "quick-xml" -version = "0.37.5" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "331e97a1af0bf59823e6eadffe373d7b27f485be8748f71471c662c1f269b7fb" +checksum = "8927b0664f5c5a98265138b7e3f90aa19a6b21353182469ace36d4ac527b7b1b" dependencies = [ "memchr", ] diff --git a/Cargo.toml b/Cargo.toml index 76b0dd51ff..777b119d00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -80,7 +80,7 @@ percent-encoding = "2.3" pgp = { version = "0.16.0", default-features = false } pin-project = "1" qrcodegen = "1.7.0" -quick-xml = "0.37" +quick-xml = "0.38" quoted_printable = "0.5" rand = { workspace = true } regex = { workspace = true } diff --git a/src/configure/auto_mozilla.rs b/src/configure/auto_mozilla.rs index 62de517419..0287b37315 100644 --- a/src/configure/auto_mozilla.rs +++ b/src/configure/auto_mozilla.rs @@ -106,7 +106,7 @@ fn parse_server( } } Event::Text(ref event) => { - let val = event.unescape().unwrap_or_default().trim().to_owned(); + let val = event.decode().unwrap_or_default().trim().to_owned(); match tag_config { MozConfigTag::Hostname => hostname = Some(val), diff --git a/src/configure/auto_outlook.rs b/src/configure/auto_outlook.rs index 6f4687ee81..a3eb89432b 100644 --- a/src/configure/auto_outlook.rs +++ b/src/configure/auto_outlook.rs @@ -79,7 +79,7 @@ fn parse_protocol( } } Event::Text(ref e) => { - let val = e.unescape().unwrap_or_default(); + let val = e.decode().unwrap_or_default(); if let Some(ref tag) = current_tag { match tag.as_str() { @@ -123,7 +123,7 @@ fn parse_redirecturl( let mut buf = Vec::new(); match reader.read_event_into(&mut buf)? { Event::Text(ref e) => { - let val = e.unescape().unwrap_or_default(); + let val = e.decode().unwrap_or_default(); Ok(val.trim().to_string()) } _ => Ok("".to_string()), diff --git a/src/location.rs b/src/location.rs index 6961461204..ed832a63cf 100644 --- a/src/location.rs +++ b/src/location.rs @@ -140,7 +140,7 @@ impl Kml { if self.tag == KmlTag::PlacemarkTimestampWhen || self.tag == KmlTag::PlacemarkPointCoordinates { - let val = event.unescape().unwrap_or_default(); + let val = event.decode().unwrap_or_default(); let val = val.replace(['\n', '\r', '\t', ' '], "");