Skip to content

Commit

Permalink
Downcase participant id to calc md5 only
Browse files Browse the repository at this point in the history
  • Loading branch information
descala committed Nov 28, 2011
1 parent 58249a9 commit 013c99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peppol-id2ap
Expand Up @@ -67,7 +67,7 @@ class App

# Setup the arguments
def process_arguments
@part_id = @arguments[0].downcase
@part_id = @arguments[0]
@doc_type = @arguments[1]
end

Expand All @@ -90,7 +90,7 @@ class App
end

def process_command
url1 = "http://#{URLPREFIX}#{MD5.new(@part_id)}#{URLSUFFIX}#{@part_id}"
url1 = "http://#{URLPREFIX}#{MD5.new(@part_id.downcase)}#{URLSUFFIX}#{@part_id}"
puts "SMP=#{url1}" if @options.verbose
xml = open(url1).read rescue bye("Can not find Participant ID '#{@part_id}'")
doc = REXML::Document.new(xml)
Expand Down

0 comments on commit 013c99c

Please sign in to comment.