Skip to content

Commit

Permalink
Fixed url encoded path to correct slashes and entry path point
Browse files Browse the repository at this point in the history
  • Loading branch information
retroluxfilm authored and retroluxfilm committed Mar 1, 2022
1 parent d896bfe commit 5ea6695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/RepositoryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ea6695

Please sign in to comment.