Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alipay::Notification 解析参数时,没有用CGI.unescape解码, 导致日期参数丢失时间部分 #9

Open
edwardzhou opened this issue Jul 18, 2011 · 1 comment

Comments

@edwardzhou
Copy link
Contributor

ActiveMerchant::Billing::Integrations::Alipay::Notification
# Take the posted data and move the relevant data into a hash
def parse(post)
@raw = post
for line in post.split('&')
key, value = line.scan( %r{^(\w+)=(.)$} ).flatten
params[key] = value
end
end

应该改为跟 activemerchant的Notification一样。
*params[key] = CGI.unescape(value || '') *

对比过 activemerchant 的Notification.parse 发现其实Alipay::Notification.parse 完全可以删除掉。

@flyerhzm
Copy link
Owner

请fork,然后提交一个pull request给我吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants