- Timestamp:
- 2010/03/11 10:35:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tmp/version-2_5-test/data/class/pages/LC_Page_ResizeImage.php
r16582 r18609 58 58 59 59 // NO_IMAGE_DIR以外のファイル名が渡された場合、ファイル名のチェックを行う 60 if ( isset($_GET['image'])&& $_GET['image'] !== NO_IMAGE_DIR) {60 if (strlen($_GET['image']) >= 1 && $_GET['image'] !== NO_IMAGE_DIR) { 61 61 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'])) { 64 67 $file = IMAGE_SAVE_DIR . $_GET['image']; 65 } else {66 GC_Utils_Ex::gfPrintLog('invalid access :resize_image.php $_GET["image"]=' . $_GET['image']);67 68 } 68 69 } 69 70 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); 75 72 } 76 73
Note: See TracChangeset
for help on using the changeset viewer.