Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

javiereguiluz
Copy link
Member

This option was missing after the recent doc update.

@stof
Copy link
Member

stof commented May 6, 2016

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 false here is dangerous.

@javiereguiluz
Copy link
Member Author

@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
Copy link
Member

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 [...]" ?

@javiereguiluz
Copy link
Member Author

@wouterj thanks for the review. I've fixed everything.

@xabbuh
Copy link
Member

xabbuh commented May 9, 2016

👍

wouterj added a commit that referenced this pull request May 13, 2016
…aviereguiluz)

This PR was squashed before being merged into the 2.3 branch (closes #6539).

Discussion
----------

Documented the "autoescape" TwigBundle config option

This option was missing after the recent doc update.

Commits
-------

ea79276 Documented the "autoescape" TwigBundle config option
wouterj added a commit that referenced this pull request May 13, 2016
@wouterj
Copy link
Member

wouterj commented May 13, 2016

Thanks @javiereguiluz! It looks great. I've made some very minor changes in c7e2145

@wouterj wouterj closed this May 13, 2016
xabbuh added a commit that referenced this pull request May 14, 2016
* 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"
xabbuh added a commit that referenced this pull request May 14, 2016
* 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"
xabbuh added a commit that referenced this pull request May 14, 2016
* 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"
xabbuh added a commit that referenced this pull request May 14, 2016
* 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants