Re: authenticity_token sent, still InvalidAuthenticityToken

冷血儿
2009-04-11T02:40:07Z

2009/4/10 Matteo Parmi
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
>
>  def call(env)
>    if env[''HTTP_USER_AGENT''] =~ /^(Adobe|Shockwave)
Flash/
>      params =
::Rack::Utils.parse_query(env[''QUERY_STRING''])
>      env[''HTTP_COOKIE''] = [ @session_key,
params[@session_key]
> ].join(''='').freeze unless params[@session_key].nil?
>    end
>    @app.call(env)
>  end


I want to find a way that detection flash client. But I cannot.
There isn''t "Flash" string in HTTP_USER_AGENT in Safari.
Someone said check HTTP_X_FLASH_VERSION.
These params appear when I have flash player installed. Also I don''t
use
flash player visit rails.

So, I don''t know how to detection flash client now?