From 079ad457641b3d597e88af3db927b6e268124e4a Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Tue, 5 Mar 2024 06:29:31 -0700 Subject: [PATCH] Fix handling of urlencoded group names in grouplist. --- Rocksolid_Light/common/grouplist.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rocksolid_Light/common/grouplist.php b/Rocksolid_Light/common/grouplist.php index e0cf812..c255d37 100644 --- a/Rocksolid_Light/common/grouplist.php +++ b/Rocksolid_Light/common/grouplist.php @@ -52,8 +52,8 @@ foreach ($groups_array as $thisgroup) { echo ''; echo ''; $group = explode("group=", $thisgroup); - if (is_file($spooldir . '/' . $group[1] . '-title')) { - $title = file_get_contents($spooldir . '/' . $group[1] . '-title'); + if (is_file($spooldir . '/' . urldecode($group[1]) . '-title')) { + $title = file_get_contents($spooldir . '/' . urldecode($group[1]) . '-title'); $title = strrchr($title, "\t"); } else { $title = ''; @@ -63,7 +63,7 @@ foreach ($groups_array as $thisgroup) { echo '' . $title . ''; echo ''; # Check if group exists. Open it if it does - fputs($ns, "group " . $group[1] . "\r\n"); + fputs($ns, "group " . urldecode($group[1]) . "\r\n"); $response = line_read($ns); $messages = explode(' ', $response); if (strcmp(substr($response, 0, 3), "211") == 0) {