Skip to content

Commit 4992443

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [HtmlSanitizer] Add support for sanitizing unlimited length of HTML document
2 parents bbc9293 + 270605b commit 4992443

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
@@ -1005,6 +1005,14 @@ increase or decrease this limit:
10051005
->withMaxInputLength(20000)
10061006
);
10071007
1008+
It is possible to disable this length limit by setting the max input length to
1009+
``-1``. Beware that it may expose your application to `DoS attacks`_.
1010+
1011+
.. versionadded:: 6.4
1012+
1013+
The support for disabling the length limit of the HTML sanitizer was
1014+
introduced in Symfony 6.4.
1015+
10081016
Custom Attribute Sanitizers
10091017
~~~~~~~~~~~~~~~~~~~~~~~~~~~
10101018

0 commit comments

Comments
 (0)