omniauth 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of omniauth might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30d55e6bde8f8c069dd705b2f96ba2b040f6185b
4
- data.tar.gz: 4bcccb646d0cf51c829fe79c9fcb88c97443ff68
3
+ metadata.gz: fed7b1b77079ded777d579bc45e47a4993237ff4
4
+ data.tar.gz: a42f6dec9e4d1dcd5db1dfeabaff1fa0c57dd613
5
5
  SHA512:
6
- metadata.gz: 4404ea3c465252b74af8f1b1abb0811eccff1195a7f8dd0182e625e33b3fb4ce31e942ab2cc9c16ada428b86f64580207823d9cc5f6ff8c9912c6ed78901483f
7
- data.tar.gz: f46fa53a89a02101f602324d5d5a5c1b76837a027a19a0e8ab83bee8a5791cc3e7c43fc19d8fa5253e0ca713b2b4ecb3fcb2583b676b9ed3c5587919c9702309
6
+ metadata.gz: e6d2dab85d9609847fdf033f38bd1ebf3c068ec986c0a140c287c11b2d60013e15405a60b75049d673d51872facf613ad72240450058495cb67653b32447927b
7
+ data.tar.gz: 2dba76e355906cc3034a0c04559e5c939f79c2eac2d730f2618fb98b9ccd4e69410aeee5a486f43b5a1e7b5cd79bdecad8494c41d00056db33c5a1f58f1b181e
@@ -276,10 +276,12 @@ module OmniAuth
276
276
 
277
277
  session['omniauth.params'] = request.GET
278
278
  OmniAuth.config.before_request_phase.call(env) if OmniAuth.config.before_request_phase
279
- if request.params['origin']
280
- session['omniauth.origin'] = request.params['origin']
281
- elsif env['HTTP_REFERER'] && !env['HTTP_REFERER'].match(/#{request_path}$/)
282
- session['omniauth.origin'] = env['HTTP_REFERER']
279
+ if options.origin_param
280
+ if request.params[options.origin_param]
281
+ session['omniauth.origin'] = request.params[options.origin_param]
282
+ elsif env['HTTP_REFERER'] && !env['HTTP_REFERER'].match(/#{request_path}$/)
283
+ session['omniauth.origin'] = env['HTTP_REFERER']
284
+ end
283
285
  end
284
286
 
285
287
  redirect(callback_url)
@@ -1,3 +1,3 @@
1
1
  module OmniAuth
2
- VERSION = '1.7.0'.freeze
2
+ VERSION = '1.7.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-09-28 00:00:00.000000000 Z
13
+ date: 2017-10-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hashie