Skip to content

Commit

Permalink
prevent double URL encode for ISO (bnc#954813)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 5, 2016
1 parent 0e938c5 commit 3126f8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/SourceDialogs.rb
Expand Up @@ -341,7 +341,8 @@ def PostprocessISOURL(url)
params["url"] = new_url.to_s

processed = URI("")
processed.query = URI.encode_www_form(params)
# url is already escaped, so unescape double escaping (bsc#954813)
processed.query = URI.unescape(URI.encode_www_form(params))

ret = "iso:///" + processed.to_s
log.info "Updated URL: #{URL.HidePassword(ret)}"
Expand Down

0 comments on commit 3126f8d

Please sign in to comment.