From 1ce741ccaa6e8c3dc3b1ebd359a5404aaf9100c1 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 28 Jun 2018 12:41:14 +0200 Subject: [PATCH] remove _url, align with https://github.com/opnsense/core/issues/2494 --- public/.htrouter.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/public/.htrouter.php b/public/.htrouter.php index 0632665..1af90c9 100644 --- a/public/.htrouter.php +++ b/public/.htrouter.php @@ -81,15 +81,10 @@ if (PHP_OS == 'WINNT') { define("LOG_LOCAL4", LOG_USER); } -// parse request query parameters -$_GET = parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY); -parse_str($_GET, $_GET); // handle requests if (preg_match("/^\/ui\/.*/", $uri)) { - $_GET['_url'] = urldecode(substr(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), 3)); require_once "{$DEV_WORKDIR}/stubs/index.php"; } elseif (preg_match("/^\/api\/.*/", $uri)) { - $_GET['_url'] = urldecode(substr(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), 4)); require_once "{$DEV_WORKDIR}/stubs/api.php"; } else { header('Location: /ui/');