summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html/maintenance.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/maintenance.php b/html/maintenance.php
index 60abea6..62805a9 100644
--- a/html/maintenance.php
+++ b/html/maintenance.php
@@ -55,7 +55,7 @@ if (array_key_exists('machine',$_GET)) {
if (array_key_exists('ddns_machines', $_GET)) {
$ddns_tokens = file('/srv/http/vhosts/eckner.net/ddns/tokens');
foreach ($ddns_tokens as $ddns_token) {
- $db -> add_machine(explode(' ', $ddns_token, 2)[1]);
+ $db -> add_machine(explode(' ', trim($ddns_token), 2)[1]);
}
echo 'done.' . "\n";
die();