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>
Wed, 15 May 2019 20:25:18 +0000 (06:25 +1000)
commitce5b9953c8d4e46cee0009739d61016edd59782e
tree2e81eb75e27f170d21a31be2ecfcad6b40b4c2e8
parent6cb3fe2e3cc8b91c88d69ab3443ffc4270804aad
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