aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-13 12:06:05 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-14 14:22:42 -0400
commita6ff2397788134b5410d89a67a3860a32670997e (patch)
tree51069f28126846034cca76d64ce58fa85f90650e /phpBB
parent6479a989c5c06939d791a73952226382918d8183 (diff)
downloadforums-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')
-rw-r--r--phpBB/phpbb/request/interface.php10
-rw-r--r--phpBB/phpbb/request/request.php8
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];
+ }
}