fix nfo display

This commit is contained in:
xiaomlove
2022-10-01 19:54:19 +08:00
parent ee00be3840
commit cdaec9bc62
3 changed files with 41 additions and 3 deletions

View File

@@ -28,13 +28,13 @@ if ($view == "latin-1" || $view == "fonthack") {
// NOTICE: TBSource specifies Latin-1 encoding in include/bittorrent.php:
// stdhead()
//$nfo = htmlspecialchars(($a["nfo"]));
$nfo = code($a["nfo"], $view);
$nfo = code_new($a["nfo"], $view);
}
else {
// Convert from ibm-437 to html unicode entities.
// take special care of Swedish letters if in magic view.
//$nfo = code($a["nfo"], $view == "magic");
$nfo = code($a["nfo"], $view);
$nfo = code_new($a["nfo"], $view);
}
stdhead($lang_viewnfo['head_view_nfo']);