mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-02 22:57:26 +02:00
8
vendor/simplehtmldom/simple_html_dom.php
vendored
8
vendor/simplehtmldom/simple_html_dom.php
vendored
@@ -110,6 +110,14 @@ function str_get_html(
|
|||||||
$defaultSpanText
|
$defaultSpanText
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// The following two if statements are rss-bridge patch
|
||||||
|
if (empty($str)) {
|
||||||
|
throw new \Exception('Refusing to parse empty string input');
|
||||||
|
}
|
||||||
|
if (strlen($str) > MAX_FILE_SIZE) {
|
||||||
|
throw new \Exception('Refusing to parse too big input');
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($str) || strlen($str) > MAX_FILE_SIZE) {
|
if (empty($str) || strlen($str) > MAX_FILE_SIZE) {
|
||||||
$dom->clear();
|
$dom->clear();
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user