summaryrefslogtreecommitdiff
path: root/app/Core/Request.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Request.php')
-rw-r--r--app/Core/Request.php12
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'];
+ }
+
}