# HG changeset patch # User Dan # Date 1201579598 18000 # Node ID 2c6ef58e315a8782ec930498fec6c35d75fe4e27 # Parent b8fd21190ae162ead8fe0361109fd3ae8b8a3088# Parent 35f9d6c93eec48530d4b432ccafd74f1fdf6b0be Re-applying the revision with the comment fix (bad merge a couple revs back) diff -r 35f9d6c93eec -r 2c6ef58e315a plugins/SpecialUpdownload.php --- a/plugins/SpecialUpdownload.php Sun Jan 27 23:43:24 2008 -0500 +++ b/plugins/SpecialUpdownload.php Mon Jan 28 23:06:38 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.

');