Permalink
Browse files

fix for rack 1.2.1 (http://github.com/rack/rack/commit/dae12e088592ee…

  • Loading branch information...
tmm1 authored and jfarmer committed Aug 3, 2010
1 parent 6ce0dfc commit 2372ef70733dbc7d46b8740702ab7b0ed30bf0db
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/facebook-graphclient.rb
@@ -28,6 +28,7 @@ def initialize facebook_settings = {}
def get_user_cookie cookies
if cookies and cookie = cookies["fbs_#{@app_id}"]
+ cookie = cookie[1..-2] if cookie[0..0] == '"'
Rack::Utils.parse_nested_query(cookie)
else
{}
@@ -104,7 +105,7 @@ def fql query
def valid?
return false if @cookie.nil?
- unless @is_valid
+ if @is_valid.nil?
vars = @cookie.dup
good_sig = vars.delete 'sig'

0 comments on commit 2372ef7

Please sign in to comment.