From 5ea6695a51033a732d5a79bfb1b04d10a5c43c1b Mon Sep 17 00:00:00 2001 From: retroluxfilm Date: Tue, 1 Mar 2022 17:40:01 +0100 Subject: [PATCH] Fixed url encoded path to correct slashes and entry path point --- src/Repository/RepositoryHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository/RepositoryHelper.php b/src/Repository/RepositoryHelper.php index 8e74d86..87776bd 100644 --- a/src/Repository/RepositoryHelper.php +++ b/src/Repository/RepositoryHelper.php @@ -57,7 +57,7 @@ public static function urlEncodePath(string $path) : string{ // first url raw encode elements between directory seperator $urlEncoded = implode(DIRECTORY_SEPARATOR, array_map("rawurlencode", explode(DIRECTORY_SEPARATOR, $path))); // remove first relative path point and seperator - $urlEncoded = str_replace("." + DIRECTORY_SEPARATOR,"",$urlEncoded); + $urlEncoded = str_replace("." . DIRECTORY_SEPARATOR,"",$urlEncoded); // convert directory seperator to forward slashes $urlEncoded = str_replace(DIRECTORY_SEPARATOR,"/",$urlEncoded); return $urlEncoded;