diff options
| author | jade (winter) | 2026-04-16 15:42:20 +0100 |
|---|---|---|
| committer | jade (winter) | 2026-04-16 15:42:20 +0100 |
| commit | c81ca4c3018090dd510cbb8e94e3e262816acd6a (patch) | |
| tree | 9deda1bb0ef2fc4177ef5d440560dd4dc6e768a5 /templates/note | |
| parent | 4b51554a93e17f093f103cb5f11c222057753ee2 (diff) | |
fix trivial xss in reply form
Diffstat (limited to 'templates/note')
| -rw-r--r-- | templates/note/reply_form.php | 4 |
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> |
