Strength mime checking by comparing mime-type to the file path mime-type if we have...
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 29 Mar 2019 23:34:47 +0000 (10:34 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 14 May 2019 21:44:41 +0000 (07:44 +1000)
commit0c522e73a8f7f844480f651aac82025206c3081f
tree239919b1d4fd35abb636beffe9d62eca200c149d
parent377dc72833831d0eb53b01cdb39b02770b62a59f
Strength mime checking by comparing mime-type to the file path mime-type if we have entity_id and file id otherwise only permit image mime_types to be accepted if going via the filename route

Ensure mimetype is set in the case where we are passing it through and its valid

Remove Whitelisting of mime-types as not useful and only check mime-types if we have had one passed in
CRM/Core/Page/File.php