Permalink
Browse files

Downcase participant id to calc md5 only

  • Loading branch information...
1 parent 58249a9 commit 013c99cbc8dee905eb8910564b963915b1dab1c0 @descala committed Nov 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 peppol-id2ap
View
@@ -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
@@ -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)

0 comments on commit 013c99c

Please sign in to comment.