Skip to content

Conversation

@qhwa
Copy link

@qhwa qhwa commented Jul 1, 2013

主要改变:

  1. 解决TOP数据中 visitor_nick 编码为 GBK 引起的乱码问题
  2. 移除项目中的 String#to_utf / String#to_gbk monkey patch,现在使用 string_utf8 gem 处理

已知还存在的问题:

visitor_nick 有可能返回一个数组,需要进行处理。暂时未处理。

@qhwa
Copy link
Author

qhwa commented Jul 1, 2013

本来只是为了去掉 iconv 依赖,让这个 Gem 能在 Ruby 2.0 下运行。
但发现生产环境使用的是“0.2.4”版本,且代码有安全漏洞。
因此重新编码了生产环境(“0.2.4”)的功能

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

Successfully merging this pull request may close these issues.

1 participant