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>
Wed, 15 May 2019 20:25:18 +0000 (06:25 +1000)
commit430858da978f7a5ee4e33e8f4e91a9fe85676893
tree9a8383d8d19011d1a35ebd30d924f198158be14d
parent2d20f3a91b0ab98f7024942efb834851bfd5cf9d
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