내부적으로 파일 생성시 퍼미션을 644로 주도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2621 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-09-19 06:53:54 +00:00
parent 283fc4d60f
commit 12b7a10761
2 changed files with 3 additions and 0 deletions

View file

@ -165,6 +165,7 @@
} }
@fclose($ft); @fclose($ft);
@fclose($fp); @fclose($fp);
@chmod($target_filename, 0644);
return true; return true;
} }
@ -272,6 +273,7 @@
@imagewbmp($thumb, $target_file, 100); @imagewbmp($thumb, $target_file, 100);
break; break;
} }
@chmod($target_file, 0644);
} }
} }
?> ?>

View file

@ -145,6 +145,7 @@
// 이미지 저장 // 이미지 저장
@imagegif($image, $image_src, 100); @imagegif($image, $image_src, 100);
@chmod($image_src, 0644);
// graph의 img 태그 값을 return // graph의 img 태그 값을 return
return sprintf('<img src="%s%s" border="0" alt="counter" />', Context::getRequestUri(), $image_src); return sprintf('<img src="%s%s" border="0" alt="counter" />', Context::getRequestUri(), $image_src);