Ignore:
Timestamp:
2013/05/01 00:50:51 (11 years ago)
Author:
AMUAMU
Message:

#2230 (携帯用画像変換処理で、画面下部の画像が変換されない)
#1596 (Windows環境で、携帯において画像が表示されない場合がある)

breakとcontinueの間違いと思われる部分の改修
preg_replaceの後方参照が間違って適用される場合がある問題の修正

File:
1 edited

Legend:

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

    r22567 r22791  
    3030 * 画像変換クラス 
    3131 */ 
    32 class SC_MobileImage  
     32class SC_MobileImage 
    3333{ 
    3434    /** 
     
    100100                // resize_image.phpは除外 
    101101                if (stripos($path, ROOT_URLPATH . 'resize_image.php') !== FALSE) { 
    102                     break; 
     102                    continue; 
    103103                } 
    104104 
    105105                $realpath = html_entity_decode($path, ENT_QUOTES); 
    106                 $realpath = preg_replace('|^' . ROOT_URLPATH . '|', HTML_REALDIR, $realpath); 
     106                $realpath = substr_replace($realpath, HTML_REALDIR, 0, strlen(ROOT_URLPATH)); 
    107107                $converted = $imageConverter->execute($realpath); 
    108108                if (isset($converted['outputImageName'])) { 
Note: See TracChangeset for help on using the changeset viewer.