diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-13 12:06:05 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-14 14:22:42 -0400 |
commit | a6ff2397788134b5410d89a67a3860a32670997e (patch) | |
tree | 51069f28126846034cca76d64ce58fa85f90650e /phpBB/phpbb/request | |
parent | 6479a989c5c06939d791a73952226382918d8183 (diff) | |
download | forums-a6ff2397788134b5410d89a67a3860a32670997e.tar forums-a6ff2397788134b5410d89a67a3860a32670997e.tar.gz forums-a6ff2397788134b5410d89a67a3860a32670997e.tar.bz2 forums-a6ff2397788134b5410d89a67a3860a32670997e.tar.xz forums-a6ff2397788134b5410d89a67a3860a32670997e.zip |
[feature/oauth] Allow getting original global arrays from request
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/request')
-rw-r--r-- | phpBB/phpbb/request/interface.php | 10 | ||||
-rw-r--r-- | phpBB/phpbb/request/request.php | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/phpBB/phpbb/request/interface.php b/phpBB/phpbb/request/interface.php index 741db35917..8d472af97a 100644 --- a/phpBB/phpbb/request/interface.php +++ b/phpBB/phpbb/request/interface.php @@ -136,4 +136,14 @@ interface phpbb_request_interface * Pay attention when using these, they are unsanitised! */ public function variable_names($super_global = phpbb_request_interface::REQUEST); + + /** + * Returns the original array of the requested super global + * + * @param phpbb_request_interface::POST|GET|REQUEST|COOKIE $super_global + * The super global which will be returned + * + * @return array The original array of the requested super global. + */ + public function original_global_values($super_global = phpbb_request_interface::REQUEST); } diff --git a/phpBB/phpbb/request/request.php b/phpBB/phpbb/request/request.php index ae3c526d89..a4e9a2c2b3 100644 --- a/phpBB/phpbb/request/request.php +++ b/phpBB/phpbb/request/request.php @@ -412,4 +412,12 @@ class phpbb_request implements phpbb_request_interface return $var; } + + /** + * {@inheritdoc} + */ + public function original_global_values($super_global = phpbb_request_interface::REQUEST) + { + return $this->input[$super_global]; + } } |