-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Integrate the HtmlSanitizer component #44798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e662efa
to
7061ef9
Compare
Remember to add |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/full.xml
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php
Outdated
Show resolved
Hide resolved
da68195
to
0bb7757
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the status here?
I think we're missing a way to configure HtmlSanitizer's $maxInputLength.
The default seems low btw (20000). Shouldn't it be more like 1000000?
@tgalopin Would be great (required?) if you can finish this PR before te 6.1 deadline which is happening soon now :) |
af72d96
to
a146cba
Compare
a146cba
to
4dd3fd6
Compare
I've pushed a commit finalizing the tests and XML support. This PR should be ready to merge |
Thank you @tgalopin. |
…gth() (nicolas-grekas) This PR was merged into the 6.1 branch. Discussion ---------- [HtmlSanitizer] Add HtmlSanitizerConfig::withMaxInputLength() | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix ##44798 (review) | License | MIT | Doc PR | - Commits ------- 070f2cf [HtmlSanitizer] Add HtmlSanitizerConfig::withMaxInputLength()
…gth() (nicolas-grekas) This PR was merged into the 6.1 branch. Discussion ---------- [HtmlSanitizer] Add HtmlSanitizerConfig::withMaxInputLength() | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #symfony/symfony#44798 (review) | License | MIT | Doc PR | - Commits ------- 070f2cfc03 [HtmlSanitizer] Add HtmlSanitizerConfig::withMaxInputLength()
…gth() (nicolas-grekas) This PR was merged into the 6.1 branch. Discussion ---------- [HtmlSanitizer] Add HtmlSanitizerConfig::withMaxInputLength() | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #symfony/symfony#44798 (review) | License | MIT | Doc PR | - Commits ------- 070f2cfc03 [HtmlSanitizer] Add HtmlSanitizerConfig::withMaxInputLength()
This PR adds the integration if the HtmlSanitizer component in the FrameworkBundle. See #44681 for details about the component.
The configuration for this integration is the following:
This PR is still WIP (esp tests) but I wanted to gather feedback regarding the configuration and DX as soon as possible.