diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-12-02 11:36:07 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-12-02 11:36:07 +0100 |
commit | 9bdd002f584de78475362067b777749486504172 (patch) | |
tree | 09e73db4f617adacdf22372f7285993644ab222e /phpBB/phpbb/request/request.php | |
parent | 08bf8812d3bc7c22671e7e0dc88a0e99fcf403d7 (diff) | |
download | forums-9bdd002f584de78475362067b777749486504172.tar forums-9bdd002f584de78475362067b777749486504172.tar.gz forums-9bdd002f584de78475362067b777749486504172.tar.bz2 forums-9bdd002f584de78475362067b777749486504172.tar.xz forums-9bdd002f584de78475362067b777749486504172.zip |
[ticket/14875] Move raw_variable() method to request_interface
PHPBB3-14875
Diffstat (limited to 'phpBB/phpbb/request/request.php')
-rw-r--r-- | phpBB/phpbb/request/request.php | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/phpBB/phpbb/request/request.php b/phpBB/phpbb/request/request.php index 0d9ffa1780..92d4213180 100644 --- a/phpBB/phpbb/request/request.php +++ b/phpBB/phpbb/request/request.php @@ -225,24 +225,7 @@ class request implements \phpbb\request\request_interface } /** - * Get a variable without trimming strings and without escaping. - * This method MUST NOT be used with queries. - * Same functionality as variable(), except does not run trim() on strings - * and does not escape input. - * This method should only be used when the raw input is needed without - * any escaping, i.e. for database password during the installation. - * - * @param string|array $var_name The form variable's name from which data shall be retrieved. - * If the value is an array this may be an array of indizes which will give - * direct access to a value at any depth. E.g. if the value of "var" is array(1 => "a") - * then specifying array("var", 1) as the name will return "a". - * @param mixed $default A default value that is returned if the variable was not set. - * This function will always return a value of the same type as the default. - * @param \phpbb\request\request_interface::POST|GET|REQUEST|COOKIE $super_global - * Specifies which super global should be used - * - * @return mixed The value of $_REQUEST[$var_name] run through {@link set_var set_var} to ensure that the type is the - * the same as that of $default. If the variable is not set $default is returned. + * {@inheritdoc} */ public function raw_variable($var_name, $default, $super_global = \phpbb\request\request_interface::REQUEST) { |