OSDN Git Service

BugTrack/651 XSS vulnerability in ls2.inc.php
[pukiwiki/pukiwiki.git] / keitai.ini.php
index f7e8a16..4e11551 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: keitai.ini.php,v 1.9 2004/07/24 08:04:23 henoheno Exp $
+// $Id: keitai.ini.php,v 1.11 2004/08/08 03:41:46 henoheno Exp $
 //
 // PukiWiki setting file (Cell phones, PDAs and other thin clients)
 
@@ -48,7 +48,6 @@ $rule_related_str = "</li>\n<li>";
 // ¿åÊ¿Àþ¤Î¥¿¥°
 $hr = '<hr>';
 
-/////////////////////////////////////////////////
 // Ê¸Ëö¤ÎÃí¼á¤ÎľÁ°¤Ëɽ¼¨¤¹¤ë¥¿¥°
 $note_hr = '<hr>';
 
@@ -150,15 +149,15 @@ switch ("$ua_name/$ua_vers") {
 //  ¤Ï \? ¤Î¤è¤¦¤Ë¥¯¥©¡¼¥È¤·¤Æ¤¯¤À¤µ¤¤¡£
 //  Á°¸å¤Ëɬ¤º / ¤ò´Þ¤á¤Æ¤¯¤À¤µ¤¤¡£¹ÔƬ»ØÄê¤Ï ^ ¤òƬ¤Ë¡£
 //  ¹ÔËö»ØÄê¤Ï $ ¤ò¸å¤í¤Ë¡£
-///////////////////////////////////////////////////
+
 // ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë(¥³¥ó¥Ð¡¼¥È»þ¤ËÃÖ´¹)
 $line_rules = array(
-       "COLOR\(([^\(\)]*)\){([^}]*)}"  => '<font color="$1">$2</font>',
-       "SIZE\(([^\(\)]*)\){([^}]*)}"   => '$2',
-       "COLOR\(([^\(\)]*)\):((?:(?!COLOR\([^\)]+\)\:).)*)"     => '<font color="$1">$2</font>',
-       "SIZE\(([^\(\)]*)\):((?:(?!SIZE\([^\)]+\)\:).)*)"       => '$2',
-       "%%%(?!%)((?:(?!%%%).)*)%%%"    => '<ins>$1</ins>',
-       "%%(?!%)((?:(?!%%).)*)%%"       => '<del>$1</del>',
+       'COLOR\(([^\(\)]*)\){([^}]*)}'  => '<font color="$1">$2</font>',
+       'SIZE\(([^\(\)]*)\){([^}]*)}'   => '$2',        // Disabled
+       'COLOR\(([^\(\)]*)\):((?:(?!COLOR\([^\)]+\)\:).)*)'     => '<font color="$1">$2</font>',
+       'SIZE\(([^\(\)]*)\):((?:(?!SIZE\([^\)]+\)\:).)*)'       => '$2', // Disabled
+       '%%%(?!%)((?:(?!%%%).)*)%%%'    => '<ins>$1</ins>',
+       '%%(?!%)((?:(?!%%).)*)%%'       => '<del>$1</del>',
        "'''(?!')((?:(?!''').)*)'''"    => '<em>$1</em>',
        "''(?!')((?:(?!'').)*)''"       => '<strong>$1</strong>',
        '&amp;br;'      => '<br>',
@@ -169,7 +168,7 @@ $line_rules = array(
 // ·ÈÂÓÅÅÏäˤ¢¤ï¤»¤¿¥Õ¥§¥¤¥¹¥Þ¡¼¥¯
 
 // $usefacemark = 1¤Ê¤é¥Õ¥§¥¤¥¹¥Þ¡¼¥¯¤¬ÃÖ´¹¤µ¤ì¤Þ¤¹
-// Ê¸¾ÏÆâ¤ËXD¤Ê¤É¤¬Æþ¤Ã¤¿¾ì¹ç¤Ëfacemark¤ËÃÖ´¹¤µ¤ì¤Æ¤·¤Þ¤¦¤Î¤Ç
+// Ê¸¾ÏÆâ¤Ë' XD'¤Ê¤É¤¬¤¢¤Ã¤¿¾ì¹ç¤Ëfacemark¤ËÃÖ´¹¤µ¤ì¤Æ¤·¤Þ¤¦¤¿¤á¡¢
 // É¬ÍפΤʤ¤Êý¤Ï $usefacemark¤ò0¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
 
 // Browser-name only
@@ -224,14 +223,14 @@ switch ($ua_name) {
        '&amp;(pb#);'   =>      '&#63877;',
 
        // Others
-       // '&amp;(zzz);'        =>      '&#63910;',
-       // '&amp;(man);'        =>      '&#63829;',
-       // '&amp;(clock);'      =>      '&#63838;',
-       // '&amp;(mail);'       =>      '&#63863;',
-       // '&amp;(mailto);'     =>      '&#63859;',
-       // '&amp;(phone);'      =>      '&#63720;',
-       // '&amp;(phoneto);'    =>      '&#63858;',
-       // '&amp;(faxto);'      =>      '&#63860;',
+       '&amp;(zzz);'   =>      '&#63910;',
+       '&amp;(man);'   =>      '&#63829;',
+       '&amp;(clock);' =>      '&#63838;',
+       '&amp;(mail);'  =>      '&#63863;',
+       '&amp;(mailto);'=>      '&#63859;',
+       '&amp;(phone);' =>      '&#63720;',
+       '&amp;(phoneto);'=>     '&#63858;',
+       '&amp;(faxto);' =>      '&#63860;',
        );
        break;
 
@@ -281,24 +280,14 @@ switch ($ua_name) {
        '&amp;(pb0);'   =>      chr(27).'$FE'.chr(15),  // '&#57893;',
 
        // Others
-       // '&amp;(zzz);'        =>      chr(27).'$E\\'.chr(15),
-       // '&amp;(man);'        =>      chr(27).'$G!'.chr(15),
-       // '&amp;(clock);'      =>      chr(27).'$GF'.chr(15),  // '&#xE026;',
-       // '&amp;(mail);'       =>      chr(27).'$Fv'.chr(15),
-       // '&amp;(mailto);'=>   chr(27).'$E#'.chr(15),
-       // '&amp;(phone);'      =>      chr(27).'$G)'.chr(15),
-       // '&amp;(phoneto);'=>  chr(27).'$E$'.chr(15),
-       // '&amp;(faxto);'      =>      chr(27).'$G+'.chr(15),
-
-       // ºÇ¶á¤Î´éʸ»ú (?)
-       // '&amp;(smile);'      =>      '&#58388;',
-       // '&amp;(bigsmile);'   =>      '&#58389;',
-       // '&amp;(huh);'        =>      '&#58377;',
-       // '&amp;(oh);'         =>      '&#58374;',
-       // '&amp;(wink);'       =>      '&#58373;',
-       // '&amp;(sad);'        =>      '&#58390;',
-       // '&amp;(heart);'      =>      '&#58152;',
-       // '&amp;(worried);'    =>      '&#58369;',
+       '&amp;(zzz);'   =>      chr(27).'$E\\'.chr(15),
+       '&amp;(man);'   =>      chr(27).'$G!'.chr(15),
+       '&amp;(clock);' =>      chr(27).'$GF'.chr(15),  // '&#xE026;',
+       '&amp;(mail);'  =>      chr(27).'$Fv'.chr(15),
+       '&amp;(mailto);'=>      chr(27).'$E#'.chr(15),
+       '&amp;(phone);' =>      chr(27).'$G)'.chr(15),
+       '&amp;(phoneto);'=>     chr(27).'$E$'.chr(15),
+       '&amp;(faxto);' =>      chr(27).'$G+'.chr(15),
        );
        break;