Skip to content

Commit

Permalink
add 'Semulator' and 'emobile' to mobile user agent.
Browse files Browse the repository at this point in the history
git-svn-id: https://tdiary.svn.sourceforge.net/svnroot/tdiary/trunk/core@3300 7f22e88f-374d-0410-998f-c91420d97ba2
  • Loading branch information
hsbt committed Jun 23, 2008
1 parent 7321102 commit 5064486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2008-06-23 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* tdiary.rb: add 'Semulator' and 'emobile' to mobile user agent.

2008-06-15 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* plugin/10spamfilter.rb, plugin/*/10spamfilter.rb,
tdiary.rb: integrate logger and spamfilter debug log.
Expand Down
2 changes: 1 addition & 1 deletion tdiary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def valid?( param, idx = 0 )
end

def mobile_agent?
self.user_agent =~ %r[(DoCoMo|J-PHONE|Vodafone|MOT-|UP\.Browser|DDIPOCKET|ASTEL|PDXGW|Palmscape|Xiino|sharp pda browser|Windows CE|L-mode|WILLCOM|SoftBank)]i
self.user_agent =~ %r[(DoCoMo|J-PHONE|Vodafone|MOT-|UP\.Browser|DDIPOCKET|ASTEL|PDXGW|Palmscape|Xiino|sharp pda browser|Windows CE|L-mode|WILLCOM|SoftBank|Semulator|emobile)]i
end

def https?
Expand Down

0 comments on commit 5064486

Please sign in to comment.