X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=f7f87d95bcea5e296515413065d043719b5e5b9f;hb=4294bc7b98c8f45ceaac867cad3d5d35ee9eb096;hp=3b8b52a706f62aff784aef0f24033b6c94300522;hpb=39ee93925b66b527c4386647001fadc898c52a2c;p=github%2Fshaarli%2FShaarli.git 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, if (empty($title) && strpos(get_url_scheme($url), 'http') !== false) { // Short timeout to keep the application responsive // The callback will fill $charset and $title with data from the downloaded page. - get_http_response($url, 25, 4194304, get_curl_download_callback($charset, $title)); + get_http_response( + $url, + $conf->get('general.download_max_size', 4194304), + $conf->get('general.download_timeout', 30), + get_curl_download_callback($charset, $title) + ); if (! empty($title) && strtolower($charset) != 'utf-8') { $title = mb_convert_encoding($title, 'utf-8', $charset); }