From 9f53ddd3f33d094be4fec7c4e25f8ce063d1d1b8 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Tue, 12 May 2015 02:04:58 +0200 Subject: [PATCH] Clean PHP code. --- src/_h5ai/server/php/inc/core/class-fallback.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_h5ai/server/php/inc/core/class-fallback.php b/src/_h5ai/server/php/inc/core/class-fallback.php index 86f5e42b..5b474e1c 100644 --- a/src/_h5ai/server/php/inc/core/class-fallback.php +++ b/src/_h5ai/server/php/inc/core/class-fallback.php @@ -13,8 +13,7 @@ class Fallback { private function get_current_path() { - $uri_parts = parse_url($this->setup->get('REQUEST_URI')); - $current_href = Util::normalize_path($uri_parts['path'], true); + $current_href = Util::normalize_path(parse_url($this->setup->get('REQUEST_URI'), PHP_URL_PATH), true); $current_path = $this->app->to_path($current_href); if (!is_dir($current_path)) {