With some short and custom code mods, i modified the phpBB to send out notification emails in html format to users, so also img attachments are processed as part of the email html body.
All ok, especially for only text mode, where all bbcode removed, not parsed (so not passed to the generate_text_for_display() function), but just cleaned to be pure text.
All ok also in html, except that unfortunately in the html mode, when i add an img, i note this problem (this is gmail email output for example):
Code: Select all
<a href="https://mysite.com/forum/download/file.php?id=8720&t=18705" target="_blank" data-saferedirecturl="https://www.google.com/url?q=https://mysite.com/forum/download/file.php?id%3D8720%26t%3D18705&source=gmail&ust=1550227055781000&usg=AFQjCNHv__tgsnawRUhyKN3kOMJwbEo2Kg"><img src="https://ci4.googleusercontent.com/proxy/nrSZIcDx-onXERL8TJQUL04J9nNzwpiG5_MNku-pCr48heWLqWTXfLMwi58NrhIiExBTM6leBNe0fbfywPUu7WBoHUFodReRSKAScQ=s0-d-e1-ft#https://mysite.com/forum/download/file.php?id=8720&t=18705" width="100" height="100" alt="testerq" class="CToWUd"></a>
While the proxy error on google come out if i pass the way phpBB require to download and display the file, so via:
myboard.com/download/file.php?id .... etc
Should i retrieve the image url and edit the htaccess (assuming that to retrieve absolute url to attachment image is equally possible like for avatars) ...
wrong in something? ... thanks!