From 5213940064fc2dbd54f4ef1195458569d49beacd Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Sat, 19 Nov 2016 12:25:52 +0100 Subject: [PATCH] Don't encode spaces to + --- src/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.php b/src/utils.php index 859032d..172ccac 100644 --- a/src/utils.php +++ b/src/utils.php @@ -21,7 +21,7 @@ function pathToUri(string $filepath): string // Don't %-encode the colon after a Windows drive letter $first = array_shift($parts); if (substr($first, -1) !== ':') { - $first = urlencode($first); + $first = rawurlencode($first); } $parts = array_map('rawurlencode', $parts); array_unshift($parts, $first);