Skip to content
This repository was archived by the owner on Jun 17, 2020. It is now read-only.

Commit bc332d1

Browse files
committed
run code inspection
1 parent c76f5eb commit bc332d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/File.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,13 @@ public static function downBigFile($file, $as)
391391
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
392392
header('Content-Description: File Download');
393393
header('Content-Type: application/octet-stream');
394-
header('Content-Length: ' . trim(`stat -c%s "$file"`));
394+
header('Content-Length: ' . trim(shell_exec('stat -c%s "$file"')));
395395
header('Content-Disposition: attachment; filename="' . $as . '"');
396396
header('Content-Transfer-Encoding: binary');
397397
//@readfile( $file );
398398

399399
flush();
400-
$fp = popen('tail -c ' . trim(`stat -c%s "$file"`) . ' ' . $file . ' 2>&1', 'r');
400+
$fp = popen('tail -c ' . trim(shell_exec('stat -c%s "$file"')) . ' ' . $file . ' 2>&1', 'r');
401401

402402
while (!feof($fp)) {
403403
// send the current file part to the browser

0 commit comments

Comments
 (0)