Skip to content
Snippets Groups Projects
  1. Nov 17, 2023
  2. Nov 16, 2023
  3. Nov 14, 2023
  4. Nov 13, 2023
  5. Nov 10, 2023
  6. Nov 07, 2023
  7. Nov 06, 2023
  8. Nov 05, 2023
  9. Nov 02, 2023
  10. Oct 30, 2023
  11. Oct 27, 2023
  12. Oct 26, 2023
  13. Oct 25, 2023
  14. Oct 24, 2023
  15. Oct 23, 2023
  16. Oct 20, 2023
  17. Oct 19, 2023
  18. Oct 18, 2023
  19. Oct 17, 2023
  20. Oct 15, 2023
  21. Oct 10, 2023
  22. Oct 09, 2023
  23. Oct 06, 2023
  24. Oct 05, 2023
  25. Oct 02, 2023
  26. Sep 28, 2023
    • Stefan Bürk's avatar
      [BUGFIX] Avoid redirect loop for empty redirect url · 158a2125
      Stefan Bürk authored
      Sending a redirect response with a empty `Location` is
      invalid per RFC. Browser vendor are dealing differntly
      with it.
      
      * Firefox executes a redirect to the current url, leading
        to an `endless` redirect chain - stopping it after some
        recursions with a coresponding notice in the network tab.
      * Chrome determines this and is doing nothing at all with
        it - leading to a white page.
      
      From the [1] RFC regarding invalid URI spec for `Location`:
      
      > Note: Some recipients attempt to recover from Location
      >       fields that are not valid URI references. This
      >       specification does not mandate or define such
      >       processing, but does allow it for the sake of
      >       robustness.
      
      A matching redirect record with a manually entered `/` as
      redirect target leads in TYPO3 v11 to this behaviour. This
      can be mitigated by selecting the corresponding site root.
      
      For TYPO3 v12 and upwards a change in the LinkHandling has
      been introduced which properly handles the `/` in the link
      generation and correctly returning a `/` as redirect url.
      That change has quite some impact and is not reasonable to
      be backported to TYPO3 v11 within #100958.
      
      This change adds an additionally guard to the `RedirectHandler`
      to handle empty redirect urls as endless loop, just logging
      it and not responding with an redirect. This helps in v11 and
      keeps a safety guard for the future in this place.
      
      [1] https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.2
      
      Resolves: #100791
      Related: #100958
      Releases: main, 12.4, 11.5
      Change-Id: I2af2d5bf759a277ade45bd0f7740ffe0099003b3
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81280
      
      
      Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
      158a2125
  27. Sep 27, 2023
  28. Sep 26, 2023