galakei 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Galakei::SessionIdParameter::InUrl
|
|
16
16
|
private
|
17
17
|
|
18
18
|
def inject_session_id_parameter?(options)
|
19
|
-
return false unless options.is_a?(Hash)
|
19
|
+
return false unless options.is_a?(Hash) && request
|
20
20
|
return true if request.imode_browser_1_0?
|
21
21
|
|
22
22
|
# au and softbank have two forms of cookies depending on if it is
|
data/lib/galakei/version.rb
CHANGED
data/spec/acceptance/app/fake.rb
CHANGED
@@ -59,6 +59,10 @@ class SessionsController < ApplicationController
|
|
59
59
|
Session Param: #{params.key?(:_myapp_session)}
|
60
60
|
EOD
|
61
61
|
end
|
62
|
+
|
63
|
+
def session_generation
|
64
|
+
render :head => :ok
|
65
|
+
end
|
62
66
|
end
|
63
67
|
|
64
68
|
|
@@ -132,4 +136,9 @@ feature 'session' do
|
|
132
136
|
click_on 'insecure_link'
|
133
137
|
page.should have_content("Session Param: false")
|
134
138
|
end
|
139
|
+
|
140
|
+
scenario 'route generation in tests' do
|
141
|
+
# request is not available in this context
|
142
|
+
visit session_generation_path
|
143
|
+
end
|
135
144
|
end
|