diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 910ddcf730..32bd0545e2 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -1717,6 +1717,10 @@ class learnpath { { return 'ppt'; } + if(!empty($_POST['woogie']) && !in_array($extension,array('dll','exe'))) + { + return 'woogie'; + } $file_base_name = str_replace('.'.$extension,'',$filename); //filename without its extension