recaptcha 4.13.1 → 4.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47a5aa97f9be47598b2ddc0d62fac7e67a217c950ce896b18e613b47cd64a976
4
- data.tar.gz: d26a294b21229e54daa8a95d63d4e4319659639d7a283a9c51a7229379a82a12
3
+ metadata.gz: 9b5ffc9bf0c060fee8d77fd96405cfe4a4b9a023663a28ad81a908e674ad6674
4
+ data.tar.gz: 958f628e01e816b2d27f7fccad2f0c7e14e701789093ee856316738b5b4810d6
5
5
  SHA512:
6
- metadata.gz: 57fe69a7f7a64a3e2590c071fca11f45c97c2dd5e4f5a859635ab53f8e2ae8eb07da7c87f01d9312bce6f7794e4ecf5968d86a6bfb5505cbb5be7d64fe570218
7
- data.tar.gz: cf2071abcfdd6c8d08589ab9e4644f1a20b28d9c4e8c591823e68d35c0976310841a3de81d0aaaddb5b29937a988511ff746bc0dc8a1f7054cdd161c6722cf51
6
+ metadata.gz: f1f835a629b92c10e4250d89db0f8717a5a6907f631a97ef90c0989b2d97875c9cffd81559872d7c025dd86c0a53e301bdd4ee9c60d745070cf4bfce8c24049e
7
+ data.tar.gz: 361b8d29ab4b9201faf4e6c87cc7bf35043915cebb4714b2c6f4424214476cef96dfe7c9707b8ffb63e7ea320dccf324ba2759b62c5344e48942647de718638e
@@ -25,8 +25,8 @@ module Recaptcha
25
25
  <div style="width: 302px; height: 422px; position: absolute;">
26
26
  <iframe
27
27
  src="#{fallback_uri}"
28
- scrolling="no" name="ReCAPTCHA"
29
- style="width: 302px; height: 422px; border-style: none; border: 0;">
28
+ name="ReCAPTCHA"
29
+ style="width: 302px; height: 422px; border-style: none; border: 0; overflow: hidden;">
30
30
  </iframe>
31
31
  </div>
32
32
  </div>
@@ -4,6 +4,7 @@ require 'json'
4
4
 
5
5
  module Recaptcha
6
6
  module Verify
7
+ G_RESPONSE_LIMIT = 4000
7
8
  # Your private API can be specified in the +options+ hash or preferably
8
9
  # using the Configuration.
9
10
  def verify_recaptcha(options = {})
@@ -15,7 +16,7 @@ module Recaptcha
15
16
  recaptcha_response = options[:response] || params['g-recaptcha-response'].to_s
16
17
 
17
18
  begin
18
- verified = if recaptcha_response.empty?
19
+ verified = if recaptcha_response.empty? || recaptcha_response.length > G_RESPONSE_LIMIT
19
20
  false
20
21
  else
21
22
  recaptcha_verify_via_api_call(request, recaptcha_response, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Recaptcha
4
- VERSION = '4.13.1'
4
+ VERSION = '4.14.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.13.1
4
+ version: 4.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason L Perry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-01 00:00:00.000000000 Z
11
+ date: 2019-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json