15 lines
796 B
Diff
15 lines
796 B
Diff
# must fail: dash_adjacency_char_ref_not_a_char
|
|
# a character reference to a non-character read (dash_read::read_xml)
|
|
diff --git a/wai/wai-rs/src/http_binding/dash_read.rs b/wai/wai-rs/src/http_binding/dash_read.rs
|
|
index 79d55df6..fdd384ae 100644
|
|
--- a/wai/wai-rs/src/http_binding/dash_read.rs
|
|
+++ b/wai/wai-rs/src/http_binding/dash_read.rs
|
|
@@ -120,7 +120,7 @@ impl<'a> Reader<'a> {
|
|
} else {
|
|
None
|
|
};
|
|
- n.and_then(char::from_u32).filter(|&c| xml_char(c)).ok_or_else(|| malformed("a reference to an entity or character outside the subset"))?
|
|
+ n.and_then(char::from_u32).ok_or_else(|| malformed("a reference to an entity or character outside the subset"))?
|
|
}
|
|
};
|
|
self.at += end + 1;
|