From: henoheno Date: Sat, 3 Jul 2004 14:59:47 +0000 (+0900) Subject: Vodafone needs more detail of User-Agent strings. But don't use greedy regex to avoid... X-Git-Tag: r1_5_0_rc1~1252 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=106febf2feba968f9b4b4db1806f874740d68d85;p=pukiwiki%2Fpukiwiki.git Vodafone needs more detail of User-Agent strings. But don't use greedy regex to avoid risk of leakage of device serial number. --- diff --git a/jphone.ini.php b/jphone.ini.php index 19363e6..b667080 100644 --- a/jphone.ini.php +++ b/jphone.ini.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: jphone.ini.php,v 1.6 2004/04/03 15:56:08 arino Exp $ +// $Id: jphone.ini.php,v 1.7 2004/07/03 14:59:47 henoheno Exp $ // // PukiWiki setting file (user agent:J-PHONE) @@ -102,11 +102,15 @@ $line_rules = array( ); ///////////////////////////////////////////////// -// max_size (SKIN¤Ç»ÈÍÑ) -$max_size = 6; //KByte -if (array_key_exists(1,$user_agent['matches'])) -{ - $max_size = 12; +// Vodafone µ»½Ñ»ñÎÁ: ¥æ¡¼¥¶¡¼¥¨¡¼¥¸¥§¥ó¥È¤Ë¤Ä¤¤¤Æ +// http://www.dp.j-phone.com/dp/tool_dl/web/useragent.php + +if (preg_match('#Profile/#', $ua)) { + // ¥Ñ¥±¥Ã¥ÈÂбþµ¡ + $max_size = 12; // SKIN¤Ç»ÈÍÑ, KByte +} else { + // ¥Ñ¥±¥Ã¥ÈÈóÂбþµ¡ + $max_size = 6; } ///////////////////////////////////////////////// @@ -115,4 +119,4 @@ if (preg_match('#([^/]+)$#',$script,$matches)) { $script = $matches[1]; } -?> \ No newline at end of file +?>