-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Documented the "autoescape" TwigBundle config option #6539
Conversation
I would add a note saying that disabling the autoescaping globally could open XSS holes as all bundles in the ecosystem rely on auto-escaping rather than explicitly escaping everything. So using |
@stof thanks for your insightful comment. That's definitely something we need to mention. I've updated the PR. Thanks! |
**type**: ``boolean`` or ``string`` **default**: ``'filename'`` | ||
|
||
If set to ``true``, all template contents are escaped for HTML. If set to | ||
``false``, no escaping is applied automatically (you can still escape each |
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.
"If set to false
, automatic escaping is disabled (you can still [...]" ?
@wouterj thanks for the review. I've fixed everything. |
👍 |
Thanks @javiereguiluz! It looks great. I've made some very minor changes in c7e2145 |
* 2.3: Remove extra spaces in Nginx template [#6539] Some small improvements Documented the "autoescape" TwigBundle config option fixing special shortcut syntax Editing the Doctrine section to improve accuracy and readability Improved "optional argument" documentation"
* 2.7: [#6566] fix indentation Update options_resolver.rst Fixing a typo - thanks to @tacman Remove extra spaces in Nginx template [#6539] Some small improvements Documented the "autoescape" TwigBundle config option fixing special shortcut syntax Editing the Doctrine section to improve accuracy and readability Improved "optional argument" documentation"
* 2.8: [#6566] fix indentation Update options_resolver.rst Fixing a typo - thanks to @tacman Fix build [#6564] Revert doc removal in 2.8 Replace property_accessor by property_access Remove extra spaces in Nginx template [#6539] Some small improvements Documented the "autoescape" TwigBundle config option [PhpUnitBridge] Add versionadded directive to clock mocking section [PhpUnitBridge] Remove section about clock mocking fixing special shortcut syntax Add missed link to the external PSR-4 specification. Editing the Doctrine section to improve accuracy and readability Typo fix in the Serializer deserialization example drop AppBundle examples in components section Make ClockMock Tests\\ namespace matching less specific Improved "optional argument" documentation"
* 3.0: [#6566] fix indentation Update options_resolver.rst Fixing a typo - thanks to @tacman Fix build [#6564] Revert doc removal in 2.8 Replace property_accessor by property_access Remove extra spaces in Nginx template [#6539] Some small improvements Documented the "autoescape" TwigBundle config option [PhpUnitBridge] Add versionadded directive to clock mocking section [PhpUnitBridge] Remove section about clock mocking fixing special shortcut syntax Add missed link to the external PSR-4 specification. Editing the Doctrine section to improve accuracy and readability Typo fix in the Serializer deserialization example drop AppBundle examples in components section merge choice_translation_domain files remove 2.x versionadded directives Make ClockMock Tests\\ namespace matching less specific Improved "optional argument" documentation"
This option was missing after the recent doc update.