1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 04:41:53 +02:00

Added 'base64' option to allow for embedded image src. (useful when including avatars in email signatures)

Added test for toAvatar() method.
Cleaned up & when found in URL by getRemoteContent()
This commit is contained in:
Cameron
2020-01-19 15:35:36 -08:00
parent 0b26a97217
commit e1e8a8b627
3 changed files with 164 additions and 17 deletions

View File

@@ -646,7 +646,10 @@ class e_file
// $mes = e107::getMessage();
$address = str_replace(array("\r", "\n", "\t"), '', $address); // May be paranoia, but streaky thought it might be a good idea
// ... and there shouldn't be unprintable characters in the URL anyway
$address = str_replace('&', '&', $address);
// ... and there shouldn't be unprintable characters in the URL anyway
$requireCurl = false;
if(vartrue($options['decode'], false)) $address = urldecode($address);