diff --git a/system/pip.php b/system/pip.php index c69195c..014c520 100644 --- a/system/pip.php +++ b/system/pip.php @@ -16,6 +16,9 @@ function pip() // Get our url path and trim the / of the left and the right if($request_url != $script_url) $url = trim(preg_replace('/'. str_replace('/', '\/', str_replace('index.php', '', $script_url)) .'/', '', $request_url, 1), '/'); + // Remove string after possible question mark + if (stripos($url, '?') > 0) $url = substr($url, 0, stripos($url, '?')); + // Split the url into segments $segments = explode('/', $url);