From e5d6e2c885603b1cee7cf46271326aeb631a03d7 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 16 May 2012 19:23:34 +0200 Subject: [PATCH] features #1236 and #1252: make URI escape work with ruby 1.8.7 --- src/authm_mad/remotes/ldap/authenticate | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/authm_mad/remotes/ldap/authenticate b/src/authm_mad/remotes/ldap/authenticate index 2fe8d57978..6b9e9aeed5 100755 --- a/src/authm_mad/remotes/ldap/authenticate +++ b/src/authm_mad/remotes/ldap/authenticate @@ -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])