1
0
Fork 0

Don't encode spaces to +

pull/166/head
Felix Becker 2016-11-19 12:25:52 +01:00
parent 8f6ee8dd02
commit 5213940064
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function pathToUri(string $filepath): string
// Don't %-encode the colon after a Windows drive letter // Don't %-encode the colon after a Windows drive letter
$first = array_shift($parts); $first = array_shift($parts);
if (substr($first, -1) !== ':') { if (substr($first, -1) !== ':') {
$first = urlencode($first); $first = rawurlencode($first);
} }
$parts = array_map('rawurlencode', $parts); $parts = array_map('rawurlencode', $parts);
array_unshift($parts, $first); array_unshift($parts, $first);