]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Fix for missing FULL_VERSION config
[mailer.git] / inc / functions.php
index 34e1aa54fedfbc70905ed34f53126602dfc21d7b..6737f4580844963e85acfa5ea4bbd88aec7d6eb9 100644 (file)
@@ -1790,7 +1790,11 @@ function sendGetRequest ($script) {
        $request  = "GET /" . trim($script) . " HTTP/1.1" . getConfig('HTTP_EOL');
        $request .= "Host: " . $host . getConfig('HTTP_EOL');
        $request .= "Referer: " . getConfig('URL') . "/admin.php" . getConfig('HTTP_EOL');
-       $request .= "User-Agent: " . getConfig('TITLE') . '/' . getConfig('FULL_VERSION') . getConfig('HTTP_EOL');
+       if (isConfigEntrySet('FULL_VERSION')) {
+               $request .= "User-Agent: " . getConfig('TITLE') . '/' . getConfig('FULL_VERSION') . getConfig('HTTP_EOL');
+       } else {
+               $request .= "User-Agent: " . getConfig('TITLE') . '/' . getConfig('VERSION') . getConfig('HTTP_EOL');
+       }
        $request .= "Content-Type: text/plain" . getConfig('HTTP_EOL');
        $request .= "Cache-Control: no-cache" . getConfig('HTTP_EOL');
        $request .= "Connection: Close" . getConfig('HTTP_EOL') . getConfig('HTTP_EOL');