From b3166e2f004135128b1a72e992d212c20231f835 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 18 Feb 2018 01:06:40 +0900 Subject: [PATCH] =?UTF-8?q?deletePost=20unlink=EC=8B=9C=20Windows=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=98=A4=EB=8F=99=EC=9E=91=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i_entrance/manage/deletePost.php | 4 ++-- i_entrance/manage/iconPost.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/i_entrance/manage/deletePost.php b/i_entrance/manage/deletePost.php index a80bdee6..d30a9899 100644 --- a/i_entrance/manage/deletePost.php +++ b/i_entrance/manage/deletePost.php @@ -39,8 +39,8 @@ if($dt == $rf) { $response['result'] = 'FAIL'; } else { $DB->Update('MEMBER', "PICTURE='', IMGSVR=0", "NO='{$SESSION->NoMember()}'"); - if(file_exists($dest)){ - @unlink($dest); + if(file_exists(__DIR__.'/'.$dest)){ + @unlink(__DIR__.'/'.$dest); } for($i=0; $i < $_serverCount; $i++) { diff --git a/i_entrance/manage/iconPost.php b/i_entrance/manage/iconPost.php index cc88251f..79f4b20d 100644 --- a/i_entrance/manage/iconPost.php +++ b/i_entrance/manage/iconPost.php @@ -78,8 +78,8 @@ if(!is_uploaded_file($image['tmp_name'])) { $response['msg'] = '업로드에 실패했습니다!'; $response['result'] = 'FAIL'; } else { - if(file_exists($old_path)){ - @unlink($old_path); + if(file_exists(__DIR__.'/'.$old_path)){ + @unlink(__DIR__.'/'.$old_path); } $pic = "{$newPicName}?={$rf}"; $DB->Update('MEMBER', "PICTURE='{$pic}', IMGSVR=1", "NO='{$SESSION->NoMember()}'");