Skip to content
Snippets Groups Projects
  1. Jan 17, 2023
  2. Jan 16, 2023
  3. Jan 13, 2023
  4. Jan 12, 2023
    • Christian Kuhn's avatar
      [BUGFIX] Avoid double hsc() in NoneElement · 29d4ecc1
      Christian Kuhn authored
      TCA "type=none" with "pass_content=false" (styleguide
      elements basic none_2) or without pass_content at
      all (styleguide elements basic none_4) double
      encodes the value. Testable using styleguide with
      some DB value like "l<u>i</u>p", which needs to be
      manually put into DB since none fields do not persist
      data using the backend.
      
      Note pass_content=true is documented to not hsc()
      the value at all, which is not true since TYPO3 v7, a
      htmlspecialchars() is still applied.
      
      Not encoding HTML is a potential security risk, so
      the patch now only fixes the "pass_content=false" and
      "not set" scenario to no longer double encode, and
      another patch will remove the pass_content option in v12
      entirely with a TCA migration and deprecation note
      stating the option did not work since 2017 anyways.
      
      Resolves: #99522
      Releases: main, 11.5
      Change-Id: Ic19ad991d0f17925d5f56fb34126a7cf8f6e6aab
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77334
      
      
      Tested-by: default avatarOliver Bartsch <bo@cedev.de>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
      29d4ecc1
  5. Jan 11, 2023
  6. Jan 10, 2023
  7. Jan 08, 2023
  8. Jan 06, 2023
  9. Jan 05, 2023
  10. Jan 03, 2023
  11. Dec 29, 2022
  12. Dec 22, 2022
  13. Dec 21, 2022
  14. Dec 20, 2022
  15. Dec 19, 2022
  16. Dec 16, 2022