Browse Source

[svn r21565] FS#306 - The learnpath class: Making detection of .dll and .exe files precise.

Ivan Tcholakov 15 years ago
parent
commit
ff8705fb78
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/newscorm/learnpath.class.php

+ 2 - 2
main/newscorm/learnpath.class.php

@@ -1904,13 +1904,13 @@ class learnpath {
 		$filename = $file_info['basename']; //name including extension
 		$extension = $file_info['extension']; //extension only
 
-		if (!empty ($_POST['ppt2lp']) && !in_array($extension, array (
+		if (!empty ($_POST['ppt2lp']) && !in_array(strtolower($extension), array (
 				'dll',
 				'exe'
 			))) {
 			return 'oogie';
 		}
-		if (!empty ($_POST['woogie']) && !in_array($extension, array (
+		if (!empty ($_POST['woogie']) && !in_array(strtolower($extension), array (
 				'dll',
 				'exe'
 			))) {