Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions system/pip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down