# HG changeset patch # User Dan # Date 1201134976 18000 # Node ID 62e1a6f3de84856443f508d86f43e2a280879fb3 # Parent 4e26d6079910f0ca0ee04ad23d6db408e61860d0 Fixed case-sensitive file extensions diff -r 4e26d6079910 -r 62e1a6f3de84 plugins/SpecialUpdownload.php --- a/plugins/SpecialUpdownload.php Wed Jan 09 22:23:09 2008 -0500 +++ b/plugins/SpecialUpdownload.php Wed Jan 23 19:36:16 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.

');