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

[TASK] Remove obsolet PHPDoc parts

The PHPDocs of GeneralUtility::_GET and GeneralUtility::_POST
have been revised. In detail, statements have been removed
that those methods would strip slashes and should `ALWAYS` be used.

Resolves: #89221
Releases: master, 9.5
Change-Id: Ic05f31998b8af5205cd6847c403b95172eeb709a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61773


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 f5caac1d
......@@ -162,11 +162,10 @@ class GeneralUtility
/**
* Returns the global $_GET array (or value from) normalized to contain un-escaped values.
* ALWAYS use this API function to acquire the GET variables!
* This function was previously used to normalize between magic quotes logic, which was removed from PHP 5.5
*
* @param string $var Optional pointer to value in GET array (basically name of GET var)
* @return mixed If $var is set it returns the value of $_GET[$var]. If $var is NULL (default), returns $_GET itself. In any case *slashes are stipped from the output!*
* @return mixed If $var is set it returns the value of $_GET[$var]. If $var is NULL (default), returns $_GET itself.
* @see _POST()
* @see _GP()
*/
......@@ -184,10 +183,9 @@ class GeneralUtility
/**
* Returns the global $_POST array (or value from) normalized to contain un-escaped values.
* ALWAYS use this API function to acquire the $_POST variables!
*
* @param string $var Optional pointer to value in POST array (basically name of POST var)
* @return mixed If $var is set it returns the value of $_POST[$var]. If $var is NULL (default), returns $_POST itself. In any case *slashes are stipped from the output!*
* @return mixed If $var is set it returns the value of $_POST[$var]. If $var is NULL (default), returns $_POST itself.
* @see _GET()
* @see _GP()
*/
......
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