1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

features #1236 and #1252: make URI escape work with ruby 1.8.7

This commit is contained in:
Javi Fontan 2012-05-16 19:23:34 +02:00
parent 780af35598
commit e5d6e2c885

View File

@ -32,7 +32,11 @@ require 'yaml'
require 'ldap_auth'
require 'uri'
URI_PARSER=URI::Parser.new
if defined?(URI::Parser)
URI_PARSER=URI::Parser.new
else
URI_PARSER=URI
end
user=URI_PARSER.unescape(ARGV[0])
pass=URI_PARSER.unescape(ARGV[1])