From ddc84518ee47967245982fafebff411564e0e3ac Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 25 Sep 2016 15:59:00 +0800 Subject: [PATCH] fix version control of update urls --- app/Services/Updater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Updater.php b/app/Services/Updater.php index dd93c9ce..34a5a713 100644 --- a/app/Services/Updater.php +++ b/app/Services/Updater.php @@ -72,7 +72,7 @@ class Updater { $ch = curl_init(); // add timestamp to control cdn cache - $url = $this->current_source['update_url'].substr(time(), 0, -3); + $url = $this->current_source['update_url']."?v=".substr(time(), 0, -3); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // quick fix for accessing https resources