add htmlspecialchars back

This commit is contained in:
Li 2022-09-20 01:54:46 +12:00
parent 47d6807490
commit 80c12c33bd
1 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,7 @@
$game = str_replace("*", "",$game);
$title = getTitle($game);
$description = $title . " - ";
$description .= getDesc($game)." - ";
$description .= getDesc($game);
$description .= " - PSMReborn #1 place for all PSM Content";
$image .= 'http://'.$_SERVER['HTTP_HOST'].'/gameinfo/'.$game.'/icon_512x512.png';
}
@ -95,6 +95,9 @@
$descsocial = str_replace("<br>", PHP_EOL, $descsocial);
$descsocial = str_replace('"', '\"', $descsocial);
$descsocial = str_replace("'", "\'", $descsocial);
$descsocial = htmlspecialchars($descsocial, ENT_QUOTES);
/*
* Write metadata
*/