From 7e96b63a86f3c40e98175b39f061bef05c4e0847 Mon Sep 17 00:00:00 2001 From: "Felix W. Dekker" Date: Thu, 6 May 2021 16:29:10 +0200 Subject: [PATCH] Remove newlines from config files --- dist/goatcounter.php | 4 ++-- dist/index.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/goatcounter.php b/dist/goatcounter.php index d97e90a..b09db6a 100644 --- a/dist/goatcounter.php +++ b/dist/goatcounter.php @@ -30,8 +30,8 @@ function goatcounter_record_hit(string $path) if (!goatcounter_should_process()) return; - $token = file_get_contents(".goat.token"); - $url = file_get_contents(".goat.url"); + $token = str_replace(["\r\n", "\r", "\n"], "", file_get_contents(".goat.token")); + $url = str_replace(["\r\n", "\r", "\n"], "", file_get_contents(".goat.url")); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); diff --git a/dist/index.php b/dist/index.php index 27a7391..9d7f453 100644 --- a/dist/index.php +++ b/dist/index.php @@ -107,7 +107,7 @@ if ($target != null && !$needs_confirmation) { $("#header").appendChild(header({title: "fwdkr.co"})); $("#footer").appendChild(footer({ vcsURL: "https://git.fwdekker.com/FWDekker/fwdkr.co/", - version: "v1.3.3" + version: "v1.3.4" })); });