mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-10 11:56:02 -04:00
SimplePie: XML_OPTION_PARSE_HUGE (#8894)
* https://github.com/FreshRSS/FreshRSS/pull/8710 * https://github.com/simplepie/simplepie/pull/977 Fix https://github.com/FreshRSS/FreshRSS/issues/8516 Co-authored-by: Kidd Lee <LeeXiaolan@users.noreply.github.com>
This commit is contained in:
1 parent
ff2add14a2
commit
a499778e12
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -18,7 +18,7 @@
|
||||
"marienfressinaud/lib_opml": "dev-main#f0e850b6394af90b898daf0e65fcc7363457b844",
|
||||
"phpgt/cssxpath": "v1.5.0",
|
||||
"phpmailer/phpmailer": "7.0.2",
|
||||
"simplepie/simplepie": "dev-freshrss#33e4bcf5685192b0fa4c9819f0813b47c3d22424"
|
||||
"simplepie/simplepie": "dev-freshrss#bccd36e9eb1ff54133e6199200b17b5e27b4d7ab"
|
||||
},
|
||||
"config": {
|
||||
"sort-packages": true,
|
||||
|
||||
@@ -139,6 +139,9 @@ class Parser implements RegistryAware
|
||||
$xml = xml_parser_create_ns($this->encoding, $this->separator);
|
||||
xml_parser_set_option($xml, XML_OPTION_SKIP_WHITE, 1);
|
||||
xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, 0);
|
||||
if (defined('XML_OPTION_PARSE_HUGE')) {
|
||||
xml_parser_set_option($xml, XML_OPTION_PARSE_HUGE, 1);
|
||||
}
|
||||
xml_set_character_data_handler($xml, [$this, 'cdata']);
|
||||
xml_set_element_handler($xml, [$this, 'tag_open'], [$this, 'tag_close']);
|
||||
|
||||
|
||||
Reference in new issue
Block a user