open-standards/wai/http-conformance/falsify/mpd-char-unchecked.patch

15 lines
711 B
Diff

# must fail: mpd_rep_id_not_a_char
# a value outside XML written (dash::esc)
diff --git a/wai/wai-rs/src/http_binding/dash.rs b/wai/wai-rs/src/http_binding/dash.rs
index 7dd63c36..1ee1165b 100644
--- a/wai/wai-rs/src/http_binding/dash.rs
+++ b/wai/wai-rs/src/http_binding/dash.rs
@@ -158,7 +158,7 @@ fn esc(s: &str) -> Result<String, PlaylistError> {
'\t' => out.push_str("&#9;"),
'\n' => out.push_str("&#10;"),
'\r' => out.push_str("&#13;"),
- c if xml_char(c) => out.push(c),
+ c if true || xml_char(c) => out.push(c),
c => return Err(PlaylistError::Malformed(format!("U+{:04X} is not an XML character", c as u32))),
}
}