summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-16 22:22:33 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-16 22:22:33 -0400
commit493c7c2c74ffdbe3ceb422d331b73e653ec0b618 (patch)
treebaa8451934e3b1f35a525a0665b12a13cf66eccd /app/Core
parente0d4877126acc1e7189e6e67e1f1ca24e1dd5f02 (diff)
Store redirect login url in session instead of using url parameter
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/Request.php11
1 files changed, 11 insertions, 0 deletions
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
@@ -163,6 +163,17 @@ class Request
}
/**
+ * Returns uri
+ *
+ * @access public
+ * @return string
+ */
+ public function getUri()
+ {
+ return isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
+ }
+
+ /**
* Get the user agent
*
* @static