diff --git a/include/class.forms.php b/include/class.forms.php index 1fc40ffebe3102b450535c58556ce6a7b1f8db3d..cdc78590427a65381b967a53af0c25bd6cd03df3 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -1587,6 +1587,10 @@ class FileUploadField extends FormField { else { if ($ext[0] != '.') $ext = '.' . $ext; + + // Ensure that the extension is lower-cased for comparison latr + $ext = strtolower($ext); + // Add this to the MIME types list so it can be exported to // the @accept attribute if (!isset($extensions[$ext]))