From 493c7c2c74ffdbe3ceb422d331b73e653ec0b618 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 16 Jul 2015 22:22:33 -0400 Subject: Store redirect login url in session instead of using url parameter --- app/Core/Request.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/Core') diff --git a/app/Core/Request.php b/app/Core/Request.php index b399a1f0..1eff66fa 100644 --- a/app/Core/Request.php +++ b/app/Core/Request.php @@ -162,6 +162,17 @@ class Request return isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : ''; } + /** + * Returns uri + * + * @access public + * @return string + */ + public function getUri() + { + return isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ''; + } + /** * Get the user agent * -- cgit v1.2.3