Handle specialchars in new grouplist.php mods.
This commit is contained in:
parent
a95c369207
commit
e6dba7fe7e
|
@ -80,7 +80,7 @@ foreach ($groups_array as $key) {
|
||||||
echo '<tr><td class="grouplist_row_section_name">';
|
echo '<tr><td class="grouplist_row_section_name">';
|
||||||
echo ' ' . $section;
|
echo ' ' . $section;
|
||||||
echo '</td><td class="grouplist_row_newsgroup_name">';
|
echo '</td><td class="grouplist_row_newsgroup_name">';
|
||||||
echo '<a href="/' . $url . '">' . urldecode($group) . "</a><br>\r\n";
|
echo '<a href="/' . $url . '">' . htmlspecialchars($group) . "</a><br>\r\n";
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo '<td class="grouplist_row_newsgroup_desc">' . $title . '</td>';
|
echo '<td class="grouplist_row_newsgroup_desc">' . $title . '</td>';
|
||||||
echo '<td class="grouplist_row_newsgroup_artnum">';
|
echo '<td class="grouplist_row_newsgroup_artnum">';
|
||||||
|
@ -89,7 +89,6 @@ foreach ($groups_array as $key) {
|
||||||
|
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
|
@ -139,8 +138,8 @@ function build_group_list()
|
||||||
$groups_array[$ok_group[0]]['url'] = $menuitem[0] . '/thread.php?group=' . urlencode($ok_group[0]);
|
$groups_array[$ok_group[0]]['url'] = $menuitem[0] . '/thread.php?group=' . urlencode($ok_group[0]);
|
||||||
|
|
||||||
// Get group title
|
// Get group title
|
||||||
if (is_file($spooldir . '/' . urldecode($ok_group[0]) . '-title')) {
|
if (is_file($spooldir . '/' . $ok_group[0] . '-title')) {
|
||||||
$title = file_get_contents($spooldir . '/' . urldecode($ok_group[0]) . '-title');
|
$title = file_get_contents($spooldir . '/' . $ok_group[0] . '-title');
|
||||||
$title = strrchr($title, "\t");
|
$title = strrchr($title, "\t");
|
||||||
} else {
|
} else {
|
||||||
$title = '';
|
$title = '';
|
||||||
|
@ -150,7 +149,7 @@ function build_group_list()
|
||||||
$groups_array[$ok_group[0]]['group'] = $ok_group[0];
|
$groups_array[$ok_group[0]]['group'] = $ok_group[0];
|
||||||
|
|
||||||
// Get group message qty
|
// Get group message qty
|
||||||
fputs($ns, "group " . urldecode($ok_group[0]) . "\r\n");
|
fputs($ns, "group " . $ok_group[0] . "\r\n");
|
||||||
$response = line_read($ns);
|
$response = line_read($ns);
|
||||||
$messages = explode(' ', $response);
|
$messages = explode(' ', $response);
|
||||||
if (strcmp(substr($response, 0, 3), "211") == 0) {
|
if (strcmp(substr($response, 0, 3), "211") == 0) {
|
||||||
|
@ -158,7 +157,6 @@ function build_group_list()
|
||||||
} else {
|
} else {
|
||||||
$groups_array[$ok_group[0]]['messages'] = 0;
|
$groups_array[$ok_group[0]]['messages'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue