Fix handling of urlencoded group names in grouplist.

This commit is contained in:
Retro_Guy 2024-03-05 06:29:31 -07:00
parent b96ace8584
commit 079ad45764
1 changed files with 3 additions and 3 deletions

View File

@ -52,8 +52,8 @@ foreach ($groups_array as $thisgroup) {
echo '<tr>';
echo '<td>';
$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 '<td>' . $title . '</td>';
echo '<td>';
# 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) {