Commit a83ee093 authored by Gregory Roussac's avatar Gregory Roussac

// warning #PSCFV-12698

parent df63dd01
......@@ -281,8 +281,10 @@ class GetFileControllerCore extends FrontController
//prevents max execution timeout, when reading large files
@set_time_limit(0);
$fp = fopen($file, 'rb');
while (!feof($fp))
echo fgets($fp, 16384);
if ($fp && is_resource($fp))
while (!feof($fp))
echo fgets($fp, 16384);
exit;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment