From 683204877fc91ec9ec7fff541389b7d8d6647d85 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Thu, 19 Oct 2023 19:34:08 +0200 Subject: [PATCH] [HtmlSanitizer] Add support for sanitizing unlimited length of HTML document --- html_sanitizer.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/html_sanitizer.rst b/html_sanitizer.rst index baef54e79d4..1f451bfb867 100644 --- a/html_sanitizer.rst +++ b/html_sanitizer.rst @@ -1009,6 +1009,14 @@ increase or decrease this limit: ->withMaxInputLength(20000) ); +It is possible to disable this length limit by setting the max input length to +``-1``. Beware that it may expose your application to `DoS attacks`_. + +.. versionadded:: 6.4 + + The support for disabling the length limit of the HTML sanitizer was + introduced in Symfony 6.4. + Custom Attribute Sanitizers ~~~~~~~~~~~~~~~~~~~~~~~~~~~ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy