diff options
| author | 2020-05-16 19:12:42 +0200 | |
|---|---|---|
| committer | 2020-05-16 19:12:42 +0200 | |
| commit | 525e1ca0b0b9e2aaf9e8c2450ceb0a1a20dd71b7 (patch) | |
| tree | 04e108a9da81c44c43343c48ec9ca3276b65b04b /lib/lib_opml.php | |
| parent | bba95356265bfc09c43333de2c463e20e9430eef (diff) | |
Relaxed OPML - allow other elements than outline (#2983)
#fix https://github.com/FreshRSS/FreshRSS/issues/2981
Relax OPML
Diffstat (limited to 'lib/lib_opml.php')
| -rw-r--r-- | lib/lib_opml.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/lib_opml.php b/lib/lib_opml.php index b89e92977..1bd2ee77b 100644 --- a/lib/lib_opml.php +++ b/lib/lib_opml.php @@ -113,10 +113,6 @@ function libopml_parse_outline($outline_xml, $strict = true) { // An outline may contain any number of outline children if ($key === 'outline') { $outline['@outlines'][] = libopml_parse_outline($value, $strict); - } else { - throw new LibOPML_Exception( - 'Body can contain only outline elements' - ); } } @@ -200,10 +196,6 @@ function libopml_parse_string($xml, $strict = true) { if ($key === 'outline') { $at_least_one_outline = true; $array['body'][] = libopml_parse_outline($value, $strict); - } else { - throw new LibOPML_Exception( - 'Body can contain only outline elements' - ); } } |
