Ignore:
Timestamp:
2010/12/30 12:50:11 (13 years ago)
Author:
Seasoft
Message:

rv 19786

  • 0バイト出力のケースあり。
  • チケット不明。
  • コスト高い。正規表現でなく、bool で評価するように実装可能と思われる。

#880(mobile/sphoneディレクトリを削除)

  • PHPエラー発生箇所の対応だが、このチケットにより不要となるルーチンのため削除。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/html/require.php

    r19786 r19791  
    3030require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 
    3131 
    32 if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 
    33         $path = $matches[1]; 
    34     } else { 
    35         $path = ''; 
    36 } 
    37  
    38 if(!preg_match("/resize_image.php/i", $path)) { 
    39 // 携帯端末の場合、モバイルサイトへリダイレクトする 
    40 SC_MobileUserAgent::sfAutoRedirectMobileSite(); 
    41  
    4232// スマートフォンの場合、リダイレクト 
    4333SC_SmartphoneUserAgent::sfAutoRedirectSmartphoneSite(); 
    44 exit; 
    45 } 
    4634 
    4735// 絵文字変換 (除去) フィルターを組み込む。 
Note: See TracChangeset for help on using the changeset viewer.