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
5 changes: 2 additions & 3 deletions basecoat/classes/routing.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ public function parseUrl($url=null) {
// Check what URL format is in use
if ( $this->settings['use_pretty_urls'] ) {
// Determine path relative to document root
$url_path = str_replace(dirname($_SERVER['PHP_SELF']), '', $this->requested_url);
$url_path = trim( parse_url($url_path, PHP_URL_PATH), '/');
$url_path = trim( parse_url($this->requested_url, PHP_URL_PATH), '/');
if ( $url_path=='' ) {
$this->run_routes = array('/');
} else {
Expand Down Expand Up @@ -293,4 +292,4 @@ private function logProfiling($route_name) {
);

}
}
}