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 34d46b9
Browse filesBrowse the repository at this point in the historyBrowse files
fix: preserve request overrides and PHP request-order semantics
Reuse fetchGlobal for merged request data, preserve explicit request globals, and clear temporary data after filtering. Remove the added protected helper to avoid subclass signature collisions. Normalize request-order case and process each source once.
Copy file name to clipboardExpand all lines: user_guide_src/source/incoming/incomingrequest.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,15 +162,15 @@ getVar()
162
162
in new projects. Even if you are already using it, we recommend that you use
163
163
another, more appropriate method.
164
164
165
-
The ``getVar()`` method returns a merged view of ``$_GET``, ``$_POST``, and ``$_COOKIE`` (depending on php.ini `request-order <https://www.php.net/manual/en/ini.core.php#ini.request-order>`_). It does not read or modify ``$_REQUEST``.
165
+
The ``getVar()`` method returns a merged view of ``$_GET``, ``$_POST``, and ``$_COOKIE`` (depending on php.ini `request-order <https://www.php.net/manual/en/ini.core.php#ini.request-order>`_). It does not read or modify ``$_REQUEST``. Data explicitly supplied through ``setGlobal('request', ...)`` takes precedence over the merged view.
166
166
167
167
.. warning:: If you want to validate POST data only, don't use ``getVar()``.
168
168
Newer values override older values. POST values may be overridden by the
169
169
cookies if they have the same name, and you set "C" after "P" in
0 commit comments