From 521a03a54080c4a1915ce672107f93cf0177eab4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 22 Jun 2020 11:43:02 +0200 Subject: mirror.php: use fpassthru instead of passthru(cat ...) --- mirror.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mirror.php b/mirror.php index 194df0e..8701035 100644 --- a/mirror.php +++ b/mirror.php @@ -85,6 +85,8 @@ ); } else { - passthru("cat '".$pfad."'"); + $handle = fopen($pfad); + fpassthru($handle); + fclose($handle); } } -- cgit v1.2.3-70-g09d2