baidu_web 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/baidu_web/version.rb +1 -1
- data/lib/baidu_web.rb +1 -1
- metadata +1 -1
data/lib/baidu_web/version.rb
CHANGED
data/lib/baidu_web.rb
CHANGED
@@ -21,7 +21,7 @@ module BaiduWeb
|
|
21
21
|
@key_word = key_word
|
22
22
|
return result if @key_word.blank?
|
23
23
|
#uri parser key word
|
24
|
-
|
24
|
+
@key_word = CGI.escape(@key_word)
|
25
25
|
|
26
26
|
#determine how many records display on one page. (same as www.baidu.com/?<some params>&rn=50)
|
27
27
|
@per_page = options[:per_page]
|