Skip to content

Commit 43f2cab

Browse files
committed
Merge pull request #7 from pcai/fix-spaced-usernames
Strip whitespace from usernames
2 parents 3222701 + cdae678 commit 43f2cab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Omniauth
22
module ConstantContact2
3-
VERSION = "1.0.4"
3+
VERSION = "1.0.5"
44
end
55
end

lib/omniauth/strategies/constantcontact2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def token_params
5454
end
5555

5656
def raw_info
57-
@raw_info ||= MultiXml.parse(access_token.get("https://api.constantcontact.com/ws/customers/" + request.params['username'] + "/settings/emailaddresses").body)
57+
@raw_info ||= MultiXml.parse(access_token.get("https://api.constantcontact.com/ws/customers/#{request.params['username'].strip}/settings/emailaddresses").body)
5858
end
5959
end
6060
end

0 commit comments

Comments
 (0)