Remove newlines from config files

This commit is contained in:
Florine W. Dekker 2021-05-06 16:29:10 +02:00
parent 6ded3bb27f
commit 7e96b63a86
Signed by: FWDekker
GPG Key ID: 78B3EAF58145AF25
2 changed files with 3 additions and 3 deletions

View File

@ -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);

2
dist/index.php vendored
View File

@ -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"
}));
});
</script>