From cf2259ad2c8eaf688d347ae012e7d81f9e1ecf1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktoras=20Mork=C5=ABnas?= Date: Wed, 22 Nov 2023 13:35:44 +0200 Subject: [PATCH] Fix: variable without internal = --- AdsTxtParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AdsTxtParser.php b/AdsTxtParser.php index f5f1cb4..5d067f5 100644 --- a/AdsTxtParser.php +++ b/AdsTxtParser.php @@ -378,7 +378,7 @@ public function parseString(string $data = NULL) : void // The is a string identifier without internal whitespace. $variable = str_replace(' ', '', $variable); - $remain = $parts[1]; + $remain = [$parts[1]]; } $finalValue = urlencode(trim(implode('=', $remain))); @@ -464,4 +464,4 @@ public function readExternalFile(string $domain = 'http://localhost') : void $this->parseString($adsTxtFile); } } -} \ No newline at end of file +}