vmware-archive / rbvmomi

Ruby interface to the VMware vSphere API.
MIT License
302 stars 175 forks source link

Fix unescaped characters in Datastore URLs #183

Closed TomGiordano closed 4 years ago

TomGiordano commented 4 years ago

URI.escape doesn't escape some characters that are valid in datacenter, datastore and folder names. Eg. &, ?, =, (, ). This can lead to invalid URLs being generated. Using URI.encode_www_form_component should correctly escape these characters.

jrgarcia commented 4 years ago

Thanks so much for your contribution! 🎉