Add option to restrict excessively large data: URLs in inline images, enabled by default, 64KB by default

This commit is contained in:
Kijin Sung 2024-10-09 16:13:17 +09:00
parent 44608bbe90
commit 1a489a3f1c
4 changed files with 39 additions and 4 deletions

View file

@ -289,6 +289,13 @@
<p class="x_help-block">{$lang->about_comment_length_limit}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->inline_data_url_limit}</label>
<div class="x_controls">
<input type="number" min="1" name="inline_data_url_limit" id="inline_data_url_limit" value="{$module_info->inline_data_url_limit ?: 64}" /> KB
<p class="x_help-block">{$lang->about_inline_data_url_limit}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->consultation}</label>
<div class="x_controls">