private function fixupUri($uri) { // a single "." matches everything if ($uri == ".") { return ""; } return $uri; }