aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/note/reply_form.php
diff options
context:
space:
mode:
authorjade (winter)2026-04-16 15:42:20 +0100
committerjade (winter)2026-04-16 15:42:20 +0100
commitc81ca4c3018090dd510cbb8e94e3e262816acd6a (patch)
tree9deda1bb0ef2fc4177ef5d440560dd4dc6e768a5 /templates/note/reply_form.php
parent4b51554a93e17f093f103cb5f11c222057753ee2 (diff)
fix trivial xss in reply form
Diffstat (limited to 'templates/note/reply_form.php')
-rw-r--r--templates/note/reply_form.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/note/reply_form.php b/templates/note/reply_form.php
index 388b243..1f84133 100644
--- a/templates/note/reply_form.php
+++ b/templates/note/reply_form.php
@@ -31,7 +31,7 @@ $selectedScope = $note->privacy->scope->value;
<div class="row summaryAndContent">
<label for="replyContent-<?= $note->id ?>"><?= __('writeReply.label') ?></label>
<input type="text" id="replySummary-<?= $note->id ?>" name="summary" autocomplete="off"
- value="<?= $summaryText ?>" placeholder="<?= __('writeNote.summary.label') ?>">
+ value="<?= htmlspecialchars($summaryText) ?>" placeholder="<?= __('writeNote.summary.label') ?>">
<textarea id="replyContent-<?= $note->id ?>" name="content" required autocomplete="off"
placeholder="<?= __('writeReply.placeholder') ?>"
_="on keydown[ctrlKey and key is 'Enter'] set b to #replySubmitButton-<?= $note->id ?> then b.click()"></textarea>
@@ -62,4 +62,4 @@ $selectedScope = $note->privacy->scope->value;
<div class="row">
<button class="primary" id="replySubmitButton-<?= $note->id ?>"><?= __('writeReply.action') ?></button>
</div>
-</form> \ No newline at end of file
+</form>