Skip to content

Commit 270605b

Browse files
committed
feature #19056 [HtmlSanitizer] Add support for sanitizing unlimited length of HTML document (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [HtmlSanitizer] Add support for sanitizing unlimited length of HTML document Fix #19051 Commits ------- 6832048 [HtmlSanitizer] Add support for sanitizing unlimited length of HTML document
2 parents 9901e18 + 6832048 commit 270605b

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)