1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Replaced all direct readfile()s with shim

Fixes: #3528
This commit is contained in:
Nick Liu
2018-10-31 07:38:32 -05:00
parent 60056deb93
commit ee1a5b1278
2 changed files with 9 additions and 9 deletions

View File

@@ -111,7 +111,7 @@ function resize_image($source_file, $destination_file, $type = "upload", $model
{
if (($result = mimeFromFilename($source_file)) === FALSE) { return FALSE; }
header($result);
if (@readfile($source_file) === FALSE) { return FALSE; }
if (e_shims::readfile($source_file) === FALSE) { return FALSE; }
}
else
{