From 6ea4822ea64a5b51d1e27d2d8049a81127ccc9d8 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Wed, 17 Apr 2019 09:13:21 -0400 Subject: bootstrap/Request: Accept query parameters --- bootstrap/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap') diff --git a/bootstrap/Request.php b/bootstrap/Request.php index cc8e687..dfefff1 100644 --- a/bootstrap/Request.php +++ b/bootstrap/Request.php @@ -4,7 +4,7 @@ class Request { public static function uri() { - return (string) trim($_SERVER['REQUEST_URI'], "/"); + return (string) trim(explode('?', $_SERVER['REQUEST_URI'])[0], "/"); } public static function method() -- cgit v1.2.3