civicrm/file - Be forgiving about old image hyperlinks
authorTim Otten <totten@civicrm.org>
Wed, 8 May 2019 23:41:55 +0000 (16:41 -0700)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 14 May 2019 21:44:41 +0000 (07:44 +1000)
commit2051296c7de5c0168a47ba6555d5d1114b47beab
tree5b092958460fd394a20a02ed4d89545cc828b0d2
parentaf92cb606c9e3cc9e885975be82057caec006e7d
civicrm/file - Be forgiving about old image hyperlinks

Previous versions of Civi sometimes generated URLs for contact-images with incorrect `&mime-type` values:

http://dmaster.bknix:8001/civicrm/file?reset=1&filename=Hello_cca4153cb14beab37c68ab7f07162425.jpg&mime-type=image/jpg

The recent security update will generate an error if the mime-type is incorrect, so this patch relaxes it
to allow the old links to continue working.
CRM/Core/Page/File.php