Commit f5caac1d authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Daniel Goerz
Browse files

[TASK] Improve PHPDoc of GeneralUtility::_GP

The PHPDoc of GeneralUtility::_GP has been revised.
In detail, the outdated and misleading part about security
has been removed and the return annotation now also
includes NULL as possible return type.

Resolves: #89222
Releases: master, 9.5
Change-Id: Iccfbfc43b15b28c035f5e93805d41e858b816d6a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61774


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Björn Jacob's avatarBjörn Jacob <bjoern.jacob@tritum.de>
Tested-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Björn Jacob's avatarBjörn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
parent e8aca6b3
......@@ -120,12 +120,11 @@ class GeneralUtility
*
*************************/
/**
* Returns the 'GLOBAL' value of incoming data from POST or GET, with priority to POST (that is equalent to 'GP' order)
* To enhance security in your scripts, please consider using GeneralUtility::_GET or GeneralUtility::_POST if you already
* know by which method your data is arriving to the scripts!
* Returns the 'GLOBAL' value of incoming data from POST or GET, with priority to POST, which is equalent to 'GP' order
* In case you already know by which method your data is arriving consider using GeneralUtility::_GET or GeneralUtility::_POST.
*
* @param string $var GET/POST var to return
* @return mixed POST var named $var and if not set, the GET var of the same name.
* @return mixed POST var named $var, if not set, the GET var of the same name and if also not set, NULL.
*/
public static function _GP($var)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment