OSDN Git Service

Added User-Agent pattern for Opera(See BugTrack/743), MSIE, Firefox, something Mozilla
authorhenoheno <henoheno>
Sun, 7 Nov 2004 09:55:49 +0000 (18:55 +0900)
committerhenoheno <henoheno>
Sun, 7 Nov 2004 09:55:49 +0000 (18:55 +0900)
pukiwiki.ini.php

index f6a58e9..60f3754 100644 (file)
@@ -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