Skip to content

Commit 1c82459

Browse files
committed
Protect lp_upload.php to avoid malicious uploads by unauthenticated users #security
1 parent e463775 commit 1c82459

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main/lp/lp_upload.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
* @author Yannick Warnier <[email protected]>
1313
*/
1414

15-
// Flag to allow for anonymous user - needs to be set before global.inc.php.
16-
$use_anonymous = true;
1715
require_once __DIR__.'/../inc/global.inc.php';
16+
api_protect_course_script();
1817
$course_dir = api_get_course_path().'/scorm';
1918
$course_sys_dir = api_get_path(SYS_COURSE_PATH).$course_dir;
2019
if (empty($_POST['current_dir'])) {

0 commit comments

Comments
 (0)