ソースを参照

Relaxed OPML - allow other elements than outline (#2983)

#fix https://github.com/FreshRSS/FreshRSS/issues/2981
Relax OPML
Alexandre Alapetite 5 年 前
コミット
525e1ca0b0
1 ファイル変更0 行追加8 行削除
  1. 0 8
      lib/lib_opml.php

+ 0 - 8
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
 		// An outline may contain any number of outline children
 		if ($key === 'outline') {
 		if ($key === 'outline') {
 			$outline['@outlines'][] = libopml_parse_outline($value, $strict);
 			$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') {
 		if ($key === 'outline') {
 			$at_least_one_outline = true;
 			$at_least_one_outline = true;
 			$array['body'][] = libopml_parse_outline($value, $strict);
 			$array['body'][] = libopml_parse_outline($value, $strict);
-		} else {
-			throw new LibOPML_Exception(
-				'Body can contain only outline elements'
-			);
 		}
 		}
 	}
 	}