Merging in a couple revisions from Nighthawk
authorDan
Wed, 23 Jan 2008 19:36:42 -0500
changeset 449 b8fd21190ae1
parent 445 62e1a6f3de84 (diff)
parent 448 f725a16e4a20 (current diff)
child 451 2c6ef58e315a
Merging in a couple revisions from Nighthawk
--- a/plugins/SpecialUpdownload.php	Sun Jan 20 23:18:03 2008 -0500
+++ b/plugins/SpecialUpdownload.php	Wed Jan 23 19:36:42 2008 -0500
@@ -93,7 +93,7 @@
       die_friendly('Upload failed', '<p>Enano was unable to determine the format of the uploaded file.</p>');
     */
     $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('Upload failed', '<p>The file type ".'.$ext.'" is not allowed.</p>');