소스 검색

Adding trailing slash see #2722

Julio Montoya 14 년 전
부모
커밋
cd31a9aa2f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main/document/download.php

+ 1 - 1
main/document/download.php

@@ -71,7 +71,7 @@ if (substr($refer_script, 0, 15) == '/fillsurvey.php') {
 	event_download($doc_url);
 }
 
-if (Security::check_abs_path($sys_course_path.$doc_url, $sys_course_path)) {
+if (Security::check_abs_path($sys_course_path.$doc_url, $sys_course_path.'/')) {
     $full_file_name = $sys_course_path.$doc_url;    
     // Check visibility of document and paths    
     if (!api_is_allowed_to_edit() && !DocumentManager::is_visible($doc_url, $_course, api_get_session_id())) {