Fix a filesize warning for provisioning using strlen instead.
This commit is contained in:
parent
e97782fbee
commit
18df3effec
|
|
@ -373,7 +373,7 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
||||||
header('Expires: 0');
|
header('Expires: 0');
|
||||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||||
header('Pragma: public');
|
header('Pragma: public');
|
||||||
header('Content-Length: ' . filesize($file_contents));
|
header('Content-Length: ' . strlen($file_contents));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$cfg_ext = ".cfg";
|
$cfg_ext = ".cfg";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue