mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Ensure usernames with at symbols handled (#1558)
Domain usernames may use '@' as part of the username, which requires encoding to be able to be used within an URI.
This commit is contained in:
@@ -782,7 +782,7 @@ module VagrantPlugins
|
||||
finalize_id_ssh_key_file
|
||||
|
||||
uri += '+ssh://'
|
||||
uri += "#{@username}@" if @username && @username != UNSET_VALUE
|
||||
uri += "#{URI.encode_www_form_component(@username)}@" if @username && @username != UNSET_VALUE
|
||||
|
||||
uri += (@host && @host != UNSET_VALUE ? @host : 'localhost')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user