Ignore:
Timestamp:
2010/03/11 10:35:11 (14 years ago)
Author:
kajiwara
Message:

正式版にナイトリービルド版をマージしてみるテスト

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tmp/version-2_5-test/data/class/pages/LC_Page_ResizeImage.php

    r16582 r18609  
    5858 
    5959        // NO_IMAGE_DIR以外のファイル名が渡された場合、ファイル名のチェックを行う 
    60         if ( isset($_GET['image']) && $_GET['image'] !== NO_IMAGE_DIR) { 
     60        if (strlen($_GET['image']) >= 1 && $_GET['image'] !== NO_IMAGE_DIR) { 
    6161 
    62             // ファイル名が正しい場合だけ、$fileを設定 
    63             if ( $this->lfCheckFileName() === true ) { 
     62            // ファイル名が正しく、ファイルが存在する場合だけ、$fileを設定 
     63            if (!$this->lfCheckFileName()) { 
     64                GC_Utils_Ex::gfPrintLog('invalid access :resize_image.php $_GET["image"]=' . $_GET['image']); 
     65            } 
     66            else if (file_exists(IMAGE_SAVE_DIR . $_GET['image'])) { 
    6467                $file = IMAGE_SAVE_DIR . $_GET['image']; 
    65             } else { 
    66                 GC_Utils_Ex::gfPrintLog('invalid access :resize_image.php $_GET["image"]=' . $_GET['image']); 
    6768            } 
    6869        } 
    6970 
    70         if(file_exists($file)){ 
    71             $objThumb->Main($file, $_GET["width"], $_GET["height"], "", true); 
    72         }else{ 
    73             $objThumb->Main(NO_IMAGE_DIR, $_GET["width"], $_GET["height"], "", true); 
    74         } 
     71        $objThumb->Main($file, $_GET["width"], $_GET["height"], "", true); 
    7572    } 
    7673 
Note: See TracChangeset for help on using the changeset viewer.