Don't encode spaces to +
parent
8f6ee8dd02
commit
5213940064
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue