Permalink
Browse files

セッションIDが更新されないバグ修正

  • Loading branch information...
1 parent 20d71c5 commit b509d120676a341aeb4c6f8cbcbe4d7960943654 @xanagi xanagi committed Jul 7, 2011
Showing with 6 additions and 9 deletions.
  1. +6 −9 lib/opensocial-wap/session/opensocial_wap_sid.rb
@@ -56,15 +56,12 @@ def use_opensocial_wap_sid?(request)
end
def opensocial_user_id(request)
- unless @opensocial_user_id
- params = begin
- request.GET.merge(request.POST)
- rescue EOFError => e
- request.GET
- end
- @opensocial_user_id = params['opensocial_viewer_id'] || params['opensocial_owner_id']
- end
- @opensocial_user_id
+ params = begin
+ request.GET.merge(request.POST)
+ rescue EOFError
+ request.GET
+ end
+ opensocial_user_id = params['opensocial_viewer_id'] || params['opensocial_owner_id']
end
end
end

0 comments on commit b509d12

Please sign in to comment.