Skip to content

Commit 7011d17

Browse files
tristan-lgjaviereguiluz
authored andcommitted
Update HTML Sanitizer doc for max_input_length option
1 parent 6d2e21c commit 7011d17

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

html_sanitizer.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,11 +931,12 @@ the HTML sanitizer: ``src``, ``href``, ``lowsrc``, ``background`` and ``ping``.
931931
->allowRelativeMedias()
932932
);
933933
934-
Configure max input length
934+
Configure Max input length
935935
~~~~~~~~~~~~~~~~~~~~~~~~~~
936936

937-
Using this option, you can change the default max input length of ``20000`` characters.
938-
Any input longer than this value will be truncated.
937+
To prevent DoS attacks, the HTML sanitizer limits the input length to ``20000`` by default.
938+
Using this option, you can change the max input length.
939+
Inputs longer than this value will be truncated.
939940

940941
.. configuration-block::
941942

0 commit comments

Comments
 (0)