Remove newlines from config files
This commit is contained in:
parent
6ded3bb27f
commit
7e96b63a86
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue