You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bcbf67e
Browse filesBrowse the repository at this point in the historyBrowse files
Fixes#9872. SiteURIFactory can normalize $_GET after PHP has populated $_REQUEST, leaving stale query values for getVar() and Validation::withRequest(). Refresh only source-derived REQUEST entries once during URI parsing while preserving unrelated or custom REQUEST values.
Copy file name to clipboardExpand all lines: user_guide_src/source/changelogs/v4.7.6.rst
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,14 @@ Bugs Fixed
38
38
is used instead. Values that cannot be converted to a string, such as objects
39
39
not implementing ``Stringable``, now throw a ``FormatException`` instead of a
40
40
fatal ``Error``.
41
-
- **Security:** Fixed a bug where a valid JSON request body that is not an object
42
-
(for example a JSON array) was corrupted after CSRF verification when the
43
-
token was sent via the ``X-CSRF-TOKEN`` header.
41
+
- **HTTP:** Fixed stale ``$_REQUEST`` values after ``SiteURIFactory`` normalizes GET parameters, so ``Validation::withRequest()`` reads the normalized values while unrelated REQUEST entries are preserved.
44
42
- **HTTP:** Fixed a bug where ``IncomingRequest::isSecure()`` did not
45
43
recognize ``https`` in the ``X-Forwarded-Proto`` header from a trusted
46
44
proxy when the value contained uppercase letters or surrounding
47
45
whitespace, or was represented as a single-element array.
46
+
- **Security:** Fixed a bug where a valid JSON request body that is not an object
47
+
(for example a JSON array) was corrupted after CSRF verification when the
0 commit comments