tajemo/openemr — comment on commit aaf42bd9470ca7ca291454296c896162140997bd
File: interface/patient_file/summary/demographics.php line 92
By yehster:

This is all well and good, but I think it would have been better to have added
$extension=strtolower($extension)
and normalize the extension to lowercase rather than adding duplicate extensions.
I'll comparing more extensions is slower (not that it'd really be significant) and you don't handle weird case mix
.pNg, .bMP
Hopefully the user isn't doing that, but strtolower seems like it would be more robust.