From 43a61d7acd7ce4d80781e165bb27d931e6fce378 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 19 Sep 2024 03:35:43 -0700 Subject: [PATCH] More carefully check for end of message in spoolnews.php, avoiding lines that are not just a dot.lf --- Rocksolid_Light/rslight/scripts/spoolnews.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocksolid_Light/rslight/scripts/spoolnews.php b/Rocksolid_Light/rslight/scripts/spoolnews.php index 8ec0acc..ecf77a7 100644 --- a/Rocksolid_Light/rslight/scripts/spoolnews.php +++ b/Rocksolid_Light/rslight/scripts/spoolnews.php @@ -252,7 +252,7 @@ function get_articles($ns, $group) file_put_contents($logfile, "\n" . format_log_date() . " " . $config_name . " Cannot get overview from " . $CONFIG['remote_server'] . " for " . $group . " (requested: xover " . $article . "-" . $getlast . " received " . $response . ")", FILE_APPEND); return false; } - while (trim($response = line_read($ns)) !== '.') { + while (rtrim($response = line_read($ns)) !== '.') { $ov = preg_split("/\t/", $response); $overview_msgid[$ov[0]] = $ov[4]; }