public
Description: Old repository for webjam. New one lives at http://github.com/webjam/webjam
Homepage: http://webjam.com.au
Clone URL: git://github.com/toolmantim/webjam.git
Fix nil error on User-Agent request header iphone detection
toolmantim (author)
Fri Sep 05 19:50:47 -0700 2008
commit  3408691997dc7955ce7856d24ca0955850738921
tree    1abffdbb283aa86855f93a79291daa3cd423c17a
parent  407f131e71733fc585cde94d94b1b4dc67dbffec
...
60
61
62
63
 
64
65
...
60
61
62
 
63
64
65
0
@@ -60,6 +60,6 @@ class ApplicationController < ActionController::Base
0
     end
0
     
0
     def iphone_request?
0
- params[:no_iphone].nil? && request.headers['User-Agent'].include?("iPhone")
0
+ params[:no_iphone].nil? && request.headers['User-Agent'] && request.headers['User-Agent'].include?("iPhone")
0
     end
0
 end

Comments

    No one has commented yet.