Skip to content

Commit 19ed5e4

Browse files
linsuiAsh258
authored andcommitted
fix(autoupdate): Decode basename when extract hash (#3615)
Co-authored-by: Jakub Čábera <cabera.jakub@gmail.com>
1 parent 9a3579c commit 19ed5e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/autoupdate.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function get_hash_for_app([String] $app, $config, [String] $version, [String] $u
172172
$hash = $null
173173

174174
$hashmode = $config.mode
175-
$basename = url_remote_filename($url)
175+
$basename = [System.Web.HttpUtility]::UrlDecode((url_remote_filename($url)))
176176

177177
$substitutions = $substitutions.Clone()
178178
$substitutions.Add('$url', (strip_fragment $url))

0 commit comments

Comments
 (0)