From ceb737fc409d473b8d7aca83a10b900d04254898 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Wed, 17 Jul 2024 01:37:42 +0300 Subject: [PATCH] fix xss --- static/js/newcore.js | 5 ++--- views/pages/Photo.php | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/newcore.js b/static/js/newcore.js index 30bbed6..b663545 100644 --- a/static/js/newcore.js +++ b/static/js/newcore.js @@ -99,8 +99,7 @@ function errimg() { - // Create the HTML content - const content =
= $photo->i('postbody') ?> | + if ($photo->i('postbody') != null) { ?> += htmlspecialchars($photo->i('postbody')) ?> |