summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-22 11:43:02 +0200
committerErich Eckner <git@eckner.net>2020-06-22 11:43:02 +0200
commit521a03a54080c4a1915ce672107f93cf0177eab4 (patch)
tree05b91650399efc1253a2a26a0fd498d1e9ba743b
parent31e575401080b381a6132d3835db54e5e7b3d121 (diff)
downloadsourceMirror-521a03a54080c4a1915ce672107f93cf0177eab4.tar.xz
mirror.php: use fpassthru instead of passthru(cat ...)
-rw-r--r--mirror.php4
1 files changed, 3 insertions, 1 deletions
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);
}
}