diff options
| author | Frédéric Guillot <fred@kanboard.net> | 2014-09-19 20:45:40 +0200 |
|---|---|---|
| committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-19 20:45:40 +0200 |
| commit | 9ffa63747ae5a5ecfe8ac3e6a3276ade80e6980b (patch) | |
| tree | 5c900006fc24daac1d212a0de17f6d6b70c1a9cd /app/Core/Request.php | |
| parent | 082fda68ca52e8ace083256c57fd0da9991cde7b (diff) | |
| parent | ed13a04c4c7906c190c4a02acecb27a77b3bdb2a (diff) | |
Merge pull-request #274 (url redirection/session expired)
Diffstat (limited to 'app/Core/Request.php')
| -rw-r--r-- | app/Core/Request.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Core/Request.php b/app/Core/Request.php index a1513459..e86cf609 100644 --- a/app/Core/Request.php +++ b/app/Core/Request.php @@ -136,4 +136,16 @@ class Request $name = 'HTTP_'.str_replace('-', '_', strtoupper($name)); return isset($_SERVER[$name]) ? $_SERVER[$name] : ''; } + + /** + * Returns current request's query string, useful for redirecting + * + * @access public + * @return string + */ + public function getQueryString() + { + return $_SERVER['QUERY_STRING']; + } + } |
