diff --git a/htdocs/admin/system/filecheck.php b/htdocs/admin/system/filecheck.php
index 58c27cbb1e4..c637a1fbc64 100644
--- a/htdocs/admin/system/filecheck.php
+++ b/htdocs/admin/system/filecheck.php
@@ -205,8 +205,8 @@ if (empty($error) && !empty($xml)) {
$constvalue = (empty($constvalue) ? '0' : $constvalue);
// Value found
$value = '';
- if ($constname && $conf->global->$constname != '') {
- $value = $conf->global->$constname;
+ if ($constname && getDolGlobalString($constname) != '') {
+ $value = getDolGlobalString($constname);
}
$valueforchecksum = (empty($value) ? '0' : $value);
@@ -388,7 +388,9 @@ if (empty($error) && !empty($xml)) {
$out .= '';
$out .= '';
} else {
- print 'Error: Failed to found dolibarr_htdocs_dir into XML file '.$xmlfile;
+ print '
';
+ print 'Error: Failed to found dolibarr_htdocs_dir into content of XML file:
'.dol_escape_htmltag(dol_trunc($xmlfile, 500));
+ print '
';
$error++;
}
diff --git a/htdocs/core/lib/geturl.lib.php b/htdocs/core/lib/geturl.lib.php
index 64cc4388718..3d1f7157e83 100644
--- a/htdocs/core/lib/geturl.lib.php
+++ b/htdocs/core/lib/geturl.lib.php
@@ -107,6 +107,11 @@ function getURLContent($url, $postorget = 'GET', $param = '', $followlocation =
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, empty($conf->global->MAIN_USE_CONNECT_TIMEOUT) ? 5 : $conf->global->MAIN_USE_CONNECT_TIMEOUT);
curl_setopt($ch, CURLOPT_TIMEOUT, empty($conf->global->MAIN_USE_RESPONSE_TIMEOUT) ? 30 : $conf->global->MAIN_USE_RESPONSE_TIMEOUT);
+ /*
+ if ($maxsize) {
+ curl_setopt($ch, CURLOPT_MAXFILESIZE_LARGE, $maxsize);
+ } */
+
//curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); // PHP 5.5
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // We want response
if ($postorget == 'POST') {