Skip to content

Commit b1aa205

Browse files
committed
Fixed an issue in simple html dom to accomodate for larger html content and get parameters in request
1 parent a5d668c commit b1aa205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/simplehtmldom_1_5/simple_html_dom.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
define('DEFAULT_TARGET_CHARSET', 'UTF-8');
6363
define('DEFAULT_BR_TEXT', "\r\n");
6464
define('DEFAULT_SPAN_TEXT', " ");
65-
define('MAX_FILE_SIZE', 600000);
65+
define('MAX_FILE_SIZE', 6000000);
6666
// helper functions
6767
// -----------------------------------------------------------------------------
6868
// get html dom from file
@@ -72,7 +72,7 @@ function file_get_html($url, $use_include_path = false, $context=null, $offset =
7272
// We DO force the tags to be terminated.
7373
$dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
7474
// For sourceforge users: uncomment the next line and comment the retreive_url_contents line 2 lines down if it is not already done.
75-
$contents = file_get_contents($url, $use_include_path, $context, $offset);
75+
$contents = file_get_contents($url);//, $use_include_path, $context, $offset);
7676
// Paperg - use our own mechanism for getting the contents as we want to control the timeout.
7777
//$contents = retrieve_url_contents($url);
7878
if (empty($contents) || strlen($contents) > MAX_FILE_SIZE)

0 commit comments

Comments
 (0)