From 8affe69c351110b488d485bbafcb777beaca4862 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 23 May 2016 17:15:28 +0000 Subject: mirror.php: don't resolve links when getting the ctime --- mirror.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirror.php b/mirror.php index 57b01cf..cb48b43 100644 --- a/mirror.php +++ b/mirror.php @@ -35,7 +35,7 @@ if (!file_exists($root.'/'.$filename)) { } else { $mirror = $tier0_url; if (!should_force_tier0($filename)) { - $ctime = filectime($root.'/'.$filename); + $ctime = lstat($root.'/'.$filename)['ctime']; // TODO: weight by GeoIP or quality or something? $mirrors = array(); foreach ($mirrors_urls as $mirrors_url) { -- cgit v1.2.2