Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ae0d450e2e |
@@ -474,9 +474,6 @@ Function Invoke-GiteaFileDownload {
|
|||||||
# Replace any URL encoded characters in the file name
|
# Replace any URL encoded characters in the file name
|
||||||
$DownloadFileName = $pathSegments[-1]
|
$DownloadFileName = $pathSegments[-1]
|
||||||
}
|
}
|
||||||
|
|
||||||
$DownloadFilePath = [System.Uri]::UnescapeDataString($DownloadFilePath)
|
|
||||||
$DownloadFileName = [System.Uri]::UnescapeDataString($DownloadFileName)
|
|
||||||
|
|
||||||
if ($PreserveRelativePath -and $outputPath) {
|
if ($PreserveRelativePath -and $outputPath) {
|
||||||
# If PreserveRelativePath is used, set up the directory structure
|
# If PreserveRelativePath is used, set up the directory structure
|
||||||
@@ -516,6 +513,8 @@ Function Invoke-GiteaFileDownload {
|
|||||||
# Normalize path separators
|
# Normalize path separators
|
||||||
$fileOutputPath = $fileOutputPath.Replace("/", [System.IO.Path]::DirectorySeparatorChar)
|
$fileOutputPath = $fileOutputPath.Replace("/", [System.IO.Path]::DirectorySeparatorChar)
|
||||||
|
|
||||||
|
# Replace any URL encoded characters in the file output path
|
||||||
|
$fileOutputPath = [System.Uri]::UnescapeDataString($fileOutputPath)
|
||||||
|
|
||||||
Write-Verbose "Output path: $fileOutputPath"
|
Write-Verbose "Output path: $fileOutputPath"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user