From: henoheno Date: Sun, 7 Nov 2004 09:55:49 +0000 (+0900) Subject: Added User-Agent pattern for Opera(See BugTrack/743), MSIE, Firefox, something Mozilla X-Git-Tag: r1_5_0_rc1~859 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3650540b9c2b024fafbe35ac8c7f75a2578e8398;p=pukiwiki%2Fpukiwiki.git Added User-Agent pattern for Opera(See BugTrack/743), MSIE, Firefox, something Mozilla --- diff --git a/pukiwiki.ini.php b/pukiwiki.ini.php index f6a58e9..60f3754 100644 --- a/pukiwiki.ini.php +++ b/pukiwiki.ini.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: pukiwiki.ini.php,v 1.92 2004/10/30 07:42:49 henoheno Exp $ +// $Id: pukiwiki.ini.php,v 1.93 2004/11/07 09:55:49 henoheno Exp $ // // PukiWiki setting file @@ -439,7 +439,25 @@ $agents = array( // WebTV array('pattern'=>'#^(WebTV)/([0-9\.]+)#', 'profile'=>'keitai'), - // ¥Ç¥¹¥¯¥È¥Ã¥×¤¢¤ë¤¤¤Ï¥ê¥Ã¥Á¥¯¥é¥¤¥¢¥ó¥È (¥Ç¥Ð¥¤¥¹¤ò¼±Ê̤¹¤ëɬÍפ¬¤Ê¤¤¤â¤Î) + // Desktop-PC browsers + + // Opera (for desktop PC, not embedded) -- See BugTrack/743 for detail + // NOTE: Keep this pattern above MSIE and Mozilla + // Sample: "Opera/7.0 (OS; U)" (not disguise) + // Sample: "Mozilla/4.0 (compatible; MSIE 5.0; OS) Opera 6.0" (disguise) + array('pattern'=>'#\b(Opera)[/ ]([0-9\.]+)\b#', 'profile'=>'default'), + + // Microsoft Internet Explorer (or something another browser disguised as MSIE) + // Sample: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" + array('pattern'=>'#\b(MSIE) ([0-9\.]+)\b#', 'profile'=>'default'), + + // Mozilla Firefox + // NOTE: Keep this pattern above Mozilla + // Sample: "Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.7) Gecko/20040803 Firefox/0.9.3" + array('pattern'=>'#\b(Firefox)/([0-9\.]+)\b#', 'profile'=>'default'), + + // Mozilla browser (or something another browser disguised as Mozilla) + array('pattern'=>'#^(Mozilla)/([0-9\.]+)\b#', 'profile'=>'default'), // ¥Ç¥Õ¥©¥ë¥ÈÀßÄê array('pattern'=>'#^#', 'profile'=>'default'), // default