aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor_profile.php
diff options
context:
space:
mode:
authorwinter2025-01-20 17:48:33 +0000
committerwinter2025-01-20 17:49:22 +0000
commitfb4cbc73bae831e68fe8234811184f46077db5e6 (patch)
tree1118e58b6fc2936964b5e2364fdd873bbf7ec2a6 /templates/actor_profile.php
parent6b78446c1d5b76438d40bbe68aa0397de533e61a (diff)
fix some xss situations
Diffstat (limited to 'templates/actor_profile.php')
-rw-r--r--templates/actor_profile.php4
1 files changed, 2 insertions, 2 deletions
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();
</a>
<?php endif; ?>
<div>
- <div class="displayName"><?= $actor->displayName ?></div>
+ <div class="displayName"><?= htmlspecialchars($actor->displayName) ?></div>
<div class="handle">@<?= $actor->getFullHandle() ?></div>
<div class="joinedDate"><?= sprintf(__('user.profile.createdAt'), $actor->created->format('Y-m-d')) ?></div>
</div>
@@ -25,7 +25,7 @@ $user = UserAccount::findByCurrentSession();
</div>
</div>
<?php if (isset($actor->bio) && $actor->bio != '') { ?>
- <pre class="bio"><?= $actor->bio ?></pre>
+ <pre class="bio"><?= htmlspecialchars($actor->bio) ?></pre>
<?php } else {
call_template('placeholder_text', ['message' => __('user.profile.bio.placeholder')]);
} ?>