Skip to content

Commit 6832048

Browse files
[HtmlSanitizer] Add support for sanitizing unlimited length of HTML document
1 parent 80f7c9e commit 6832048

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

html_sanitizer.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,14 @@ increase or decrease this limit:
10091009
->withMaxInputLength(20000)
10101010
);
10111011
1012+
It is possible to disable this length limit by setting the max input length to
1013+
``-1``. Beware that it may expose your application to `DoS attacks`_.
1014+
1015+
.. versionadded:: 6.4
1016+
1017+
The support for disabling the length limit of the HTML sanitizer was
1018+
introduced in Symfony 6.4.
1019+
10121020
Custom Attribute Sanitizers
10131021
~~~~~~~~~~~~~~~~~~~~~~~~~~~
10141022

0 commit comments

Comments
 (0)