plugins/SpecialUpdownload.php
changeset 372 5bd429428101
parent 366 7e16181545e1
child 387 92664d2efab8
--- a/plugins/SpecialUpdownload.php	Wed Jan 23 12:48:22 2008 -0500
+++ b/plugins/SpecialUpdownload.php	Thu Jan 24 22:06:09 2008 -0500
@@ -70,7 +70,7 @@
     }
     
     $types = fetch_allowed_extensions();
-    $ext = substr($file['name'], strrpos($file['name'], '.')+1, strlen($file['name']));
+    $ext = strtolower(substr($file['name'], strrpos($file['name'], '.')+1, strlen($file['name'])));
     if ( !isset($types[$ext]) || ( isset($types[$ext]) && !$types[$ext] ) )
     {
       die_friendly($lang->get('upload_err_title'), '<p>' . $lang->get('upload_err_banned_ext', array('ext' => htmlspecialchars($ext))) . '</p>');