aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/index.php b/index.php
index 3b8b52a7..f7f87d95 100644
--- a/index.php
+++ b/index.php
@@ -1376,7 +1376,12 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
1376 if (empty($title) && strpos(get_url_scheme($url), 'http') !== false) { 1376 if (empty($title) && strpos(get_url_scheme($url), 'http') !== false) {
1377 // Short timeout to keep the application responsive 1377 // Short timeout to keep the application responsive
1378 // The callback will fill $charset and $title with data from the downloaded page. 1378 // The callback will fill $charset and $title with data from the downloaded page.
1379 get_http_response($url, 25, 4194304, get_curl_download_callback($charset, $title)); 1379 get_http_response(
1380 $url,
1381 $conf->get('general.download_max_size', 4194304),
1382 $conf->get('general.download_timeout', 30),
1383 get_curl_download_callback($charset, $title)
1384 );
1380 if (! empty($title) && strtolower($charset) != 'utf-8') { 1385 if (! empty($title) && strtolower($charset) != 'utf-8') {
1381 $title = mb_convert_encoding($title, 'utf-8', $charset); 1386 $title = mb_convert_encoding($title, 'utf-8', $charset);
1382 } 1387 }