Ignore:
Timestamp:
2013/05/02 18:11:36 (13 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_MobileImage.php

    r22791 r22796  
    3030 * 画像変換クラス 
    3131 */ 
    32 class SC_MobileImage 
    33 { 
     32class SC_MobileImage { 
    3433    /** 
    3534     * 画像を端末の解像度に合わせて変換する 
     
    3938     * @return string 出力 
    4039     */ 
    41     static function handler($buffer) 
    42     { 
     40    static function handler($buffer) { 
    4341 
    4442        // 端末情報を取得する 
     
    10098                // resize_image.phpは除外 
    10199                if (stripos($path, ROOT_URLPATH . 'resize_image.php') !== FALSE) { 
    102                     continue; 
     100                    break; 
    103101                } 
    104102 
    105103                $realpath = html_entity_decode($path, ENT_QUOTES); 
    106                 $realpath = substr_replace($realpath, HTML_REALDIR, 0, strlen(ROOT_URLPATH)); 
     104                $realpath = preg_replace('|^' . ROOT_URLPATH . '|', HTML_REALDIR, $realpath); 
    107105                $converted = $imageConverter->execute($realpath); 
    108106                if (isset($converted['outputImageName'])) { 
Note: See TracChangeset for help on using the changeset viewer.