Commit e80aed8c22e701d06be5ef73bff7d1143f0706cc
1 parent
80e36f18
Exists in
master
CHG: encode mobile
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/dingtalk/api/user.rb
... | ... | @@ -14,7 +14,7 @@ module Dingtalk |
14 | 14 | end |
15 | 15 | |
16 | 16 | def get_by_mobile(mobile) |
17 | - http_get("get_by_mobile?access_token=#{access_token}&mobile=#{mobile}") | |
17 | + http_get("get_by_mobile?access_token=#{access_token}&mobile=#{URI.encode_www_form_component mobile}") | |
18 | 18 | end |
19 | 19 | |
20 | 20 | def create(name, mobile, department=[1], options={}) | ... | ... |