From fb4cbc73bae831e68fe8234811184f46077db5e6 Mon Sep 17 00:00:00 2001 From: winter Date: Mon, 20 Jan 2025 17:48:33 +0000 Subject: fix some xss situations --- templates/actor_profile.php | 4 ++-- templates/note.php | 5 +++-- templates/skeleton.php | 2 +- templates/write_note_form.php | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/actor_profile.php b/templates/actor_profile.php index 46ee273..fed8e3b 100644 --- a/templates/actor_profile.php +++ b/templates/actor_profile.php @@ -13,7 +13,7 @@ $user = UserAccount::findByCurrentSession();
= $actor->bio ?>+
= htmlspecialchars($actor->bio) ?>__('user.profile.bio.placeholder')]); } ?> diff --git a/templates/note.php b/templates/note.php index 98581c8..3e978b9 100644 --- a/templates/note.php +++ b/templates/note.php @@ -20,7 +20,8 @@ if ($user != null) {