Fix textarea value attribute in message_config.php

- Textarea elements don't support value attribute, content must be between tags
- Added esc() around the content for XSS protection
This commit is contained in:
opencode
2026-04-03 08:54:55 +00:00
parent f2092d497b
commit 987c1904f7

View File

@@ -42,7 +42,7 @@
<label for="msg-msg" class="form-label"><?= lang('Config.msg_msg'); ?></label>
<div class="input-group mb-3">
<span class="input-group-text"><i class="bi bi-chat-quote"></i></span>
<textarea class="form-control" name="msg_msg" id="msg-msg" rows="10" placeholder="<?= lang('Config.msg_msg_placeholder'); ?>" value="<?= $config['msg_msg']; ?>"></textarea>
<textarea class="form-control" name="msg_msg" id="msg-msg" rows="10" placeholder="<?= lang('Config.msg_msg_placeholder'); ?>"><?= esc($config['msg_msg']); ?></textarea>
</div>
<div class="d-flex justify-content-end">