From 80c12c33bd17e1f9f694cafb481c48104208c277 Mon Sep 17 00:00:00 2001
From: Li
Date: Tue, 20 Sep 2022 01:54:46 +1200
Subject: [PATCH] add htmlspecialchars back
---
header.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/header.php b/header.php
index 0d5ac0e..1fb0d82 100755
--- a/header.php
+++ b/header.php
@@ -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("
", PHP_EOL, $descsocial);
$descsocial = str_replace('"', '\"', $descsocial);
$descsocial = str_replace("'", "\'", $descsocial);
+
+ $descsocial = htmlspecialchars($descsocial, ENT_QUOTES);
+
/*
* Write metadata
*/