Web application firewalls: what is written in an editor goes as a file beside the form, so CrowdSec with the OWASP Core Rule Set, ModSecurity and Cloudflare no longer block and ban agents and clients for a picture, coloured text or a reply's draft - ticket replies and drafts, new tickets, editing a reply, documents in rich text and Markdown, Knowledge Base articles, canned responses, AI Reword and Draft, and the client portal's tickets and replies - restored into the post by functions/request_fields.php before anything reads it, with posts too large for PHP's upload limits sent as before; 26.12.3 changelog

This commit is contained in:
johnnyq
2026-12-01 17:03:33 -05:00
parent 1ba1ffdfd1
commit ab3a8ad683
12 changed files with 318 additions and 20 deletions

View File

@@ -15,6 +15,7 @@ require_once __DIR__ . '/functions/security.php';
require_once __DIR__ . '/functions/sanitize.php';
require_once __DIR__ . '/functions/format.php';
require_once __DIR__ . '/functions/request.php';
require_once __DIR__ . '/functions/request_fields.php';
require_once __DIR__ . '/functions/files.php';
require_once __DIR__ . '/functions/text_diff.php';
require_once __DIR__ . '/functions/markdown.php';
@@ -166,3 +167,7 @@ require_once __DIR__ . '/functions/dev_mode.php';
// The connection config.php opened takes the collation the tables have, so that a string the
// server makes (CAST(x AS CHAR), say) matches them - functions/database_collation.php
databaseConnectionCollation();
// What an editor held, sent beside the form as a file so web application firewalls don't take its
// HTML for an attack - back into $_POST before anything reads it (functions/request_fields.php)
requestFieldsRestore();