待辦事項 #9947

File uploading permission
啟用日期: 2007-02-14 16:20 最後更新: 2007-02-16 16:49

回報者:
負責人:
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:

細節

Refer this topic.

http://www.xugj.org/modules/QandA/index.php?topic_id=118

My patch should be ...

$prev_mask = @umask( 0022 ) ;
$ret = move_uploaded_file($this->_mTmpFileName,$dest);
@umask( $prev_mask ) ;
@chmod( $dest , 0644 ) ;
return $ret ;

Ticket History (3/3 Histories)

2007-02-16 14:28 Updated by: minahito
  • 負責人 Update from (無) to minahito
  • 處理結果 Update from to Accepted
2007-02-16 15:09 Updated by: minahito
  • 處理結果 Update from Accepted to 修正
評語
Logged In: YES
user_id=8353

I took your patch and commit it. Thank you very much!
New code needs to confirm whether we have fixed the trouble.
2007-02-16 16:49 Updated by: minahito
  • Ticket Close date is changed to 2007-02-16 16:49
  • 狀態 Update from 開啟 to 關閉
評語
Logged In: YES
user_id=8353

Sorry, toplan alread confirmed bugfix. Let's close this
item! Thanks.

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入