Skip to content

Commit

Permalink
[fontique] fontconfig: allow_dtd for xml config
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrg committed Apr 26, 2024
1 parent 9e2be05 commit 3dd6f9b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fontique/src/backend/fontconfig/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ pub fn parse_config(path: &Path, sink: &mut impl ParserSink) {
let Ok(text) = std::fs::read_to_string(path) else {
return;
};
let Ok(doc) = roxmltree::Document::parse(&text) else {
let Ok(doc) = roxmltree::Document::parse_with_options(
&text,
roxmltree::ParsingOptions {
allow_dtd: true,
nodes_limit: u32::MAX,
},
) else {
return;
};
let root = doc.root_element();
Expand Down

0 comments on commit 3dd6f9b

Please sign in to comment.