# HG changeset patch # User Dan # Date 1201135002 18000 # Node ID b8fd21190ae162ead8fe0361109fd3ae8b8a3088 # Parent 62e1a6f3de84856443f508d86f43e2a280879fb3# Parent f725a16e4a2078f6be70a7b96f0471f0ddd9c702 Merging in a couple revisions from Nighthawk diff -r f725a16e4a20 -r b8fd21190ae1 plugins/SpecialUpdownload.php --- 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', '

Enano was unable to determine the format of the uploaded file.

'); */ $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', '

The file type ".'.$ext.'" is not allowed.

');