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
Copy file name to clipboardExpand all lines: user_guide_src/source/incoming/incomingrequest.rst
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ getVar()
161
161
in new projects. Even if you are already using it, we recommend that you use
162
162
another, more appropriate method.
163
163
164
-
The ``getVar()`` method will pull from ``$_REQUEST``, so will return any data from ``$_GET``, ``$POST``, or ``$_COOKIE`` (depending on php.ini `request-order <https://www.php.net/manual/en/ini.core.php#ini.request-order>`_).
164
+
The ``getVar()`` method will pull from ``$_REQUEST``, so will return any data from ``$_GET``, ``$_POST``, or ``$_COOKIE`` (depending on php.ini `request-order <https://www.php.net/manual/en/ini.core.php#ini.request-order>`_).
165
165
166
166
.. warning:: If you want to validate POST data only, don't use ``getVar()``.
167
167
Newer values override older values. POST values may be overridden by the
@@ -229,7 +229,7 @@ Filtering Input Data
229
229
To maintain security of your application, you will want to filter all input as you access it. You can
230
230
pass the type of filter to use as the second parameter of any of these methods. The native ``filter_var()``
231
231
function is used for the filtering. Head over to the PHP manual for a list of `valid
:param int $filter: The type of filter to apply. A list of filters can be found in `PHP manual <https://www.php.net/manual/en/filter.filters.php>`__.
90
-
:param int|array $flags: Flags to apply. A list of flags can be found in `PHP manual <https://www.php.net/manual/en/filter.filters.flags.php>`__.
89
+
:param int $filter: The type of filter to apply. A list of filters can be found in `PHP manual <https://www.php.net/manual/en/filters.php>`__.
90
+
:param int|array $flags: Flags to apply. A list of flags can be found in `PHP manual <https://www.php.net/manual/en/filter.constants.php#filter.constants.flags.generic>`__.
91
91
:returns: ``$_SERVER`` item value if found, null if not
92
92
:rtype: mixed
93
93
@@ -107,8 +107,8 @@ Class Reference
107
107
:php:func:`env()` instead.
108
108
109
109
:param mixed $index: Value name
110
-
:param int $filter: The type of filter to apply. A list of filters can be found in `PHP manual <https://www.php.net/manual/en/filter.filters.php>`__.
111
-
:param int|array $flags: Flags to apply. A list of flags can be found in `PHP manual <https://www.php.net/manual/en/filter.filters.flags.php>`__.
110
+
:param int $filter: The type of filter to apply. A list of filters can be found in `PHP manual <https://www.php.net/manual/en/filters.php>`__.
111
+
:param int|array $flags: Flags to apply. A list of flags can be found in `PHP manual <https://www.php.net/manual/en/filter.constants.php#filter.constants.flags.generic>`__.
112
112
:returns: ``$_ENV`` item value if found, null if not
113
113
:rtype: mixed
114
114
@@ -135,8 +135,8 @@ Class Reference
135
135
136
136
:param string $method: Input filter constant
137
137
:param mixed $index: Value name
138
-
:param int $filter: The type of filter to apply. A list of filters can be found in `PHP manual <https://www.php.net/manual/en/filter.filters.php>`__.
139
-
:param int|array $flags: Flags to apply. A list of flags can be found in `PHP manual <https://www.php.net/manual/en/filter.filters.flags.php>`__.
138
+
:param int $filter: The type of filter to apply. A list of filters can be found in `PHP manual <https://www.php.net/manual/en/filters.php>`__.
139
+
:param int|array $flags: Flags to apply. A list of flags can be found in `PHP manual <https://www.php.net/manual/en/filter.constants.php#filter.constants.flags.generic>`__.
140
140
:rtype: mixed
141
141
142
142
Fetches one or more items from a global, like cookies, get, post, etc.
0 commit comments