From ff8705fb78120eed6b74abcbe7a6cb84174ee475 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Mon, 22 Jun 2009 13:36:41 +0200 Subject: [PATCH] [svn r21565] FS#306 - The learnpath class: Making detection of .dll and .exe files precise. --- main/newscorm/learnpath.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 7bef12ce81..e6670728f5 100644 --- a/main/newscorm/learnpath.class.php +++ b/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' ))) {