Beispiel #1
0
 protected function getRequestUri()
 {
     // separate path and query-string
     $requestUri = explode('?', rawurldecode(Curry_URL::getRequestUri()), 2);
     // remove matching base path
     $baseUrl = Curry_URL::getDefaultBaseUrl();
     $basePath = $baseUrl['path'];
     if ($basePath === $requestUri[0]) {
         $requestUri[0] = '/';
     } else {
         if (Curry_String::startsWith($requestUri[0], $basePath)) {
             $requestUri[0] = substr($requestUri[0], strlen($basePath));
         }
     }
     return join('?', $requestUri);
 }