mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
file 다운로드 리퍼러 검사
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5347 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
671bdc3e8d
commit
0772f4ab65
12 changed files with 233 additions and 198 deletions
|
|
@ -71,6 +71,10 @@
|
|||
if(!$is_permitted) return $this->stop('msg_not_permitted_download');
|
||||
}
|
||||
}
|
||||
if($file_module_config->allow_outlink == 'N') {
|
||||
$referer = parse_url($_SERVER["HTTP_REFERER"]);
|
||||
if($referer['host'] != $_SERVER['HTTP_HOST']) return $this->stop('msg_not_permitted_download');
|
||||
}
|
||||
|
||||
// trigger 호출 (before)
|
||||
$output = ModuleHandler::triggerCall('file.downloadFile', 'before', $file_obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue