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 =
+ const content = `
-
; +
`; $('#err').html(content); $('#err .p20').slideDown(500); } diff --git a/views/pages/Photo.php b/views/pages/Photo.php index 8410564..07b155a 100644 --- a/views/pages/Photo.php +++ b/views/pages/Photo.php @@ -127,8 +127,8 @@ if ($photo->i('id') !== null) { i('place') != null) { ?> - + if ($photo->i('postbody') != null) { ?> + @@ -139,7 +139,7 @@ if ($photo->i('id') !== null) {
content('comment') != null) { ?> -
content('comment') ?>
+
content('comment')) ?>

i('postbody') ?>i('postbody')) ?>