strip newlines from mysql base64 encoded data before decoding

This commit is contained in:
Matthew Saunders Brown 2023-12-05 11:56:32 -08:00
parent ced57b2773
commit 48830851b8
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class Autoresponders extends \Panel\Vmail {
$subject = substr_replace($subject, "", -1);
$autoresponder_array['subject'] = $subject;
$autoresponder_array['body'] = base64_decode($autoresponder_array['body']);;
$autoresponder_array['body'] = base64_decode(str_replace('\n', '', $autoresponder_array['body']));
$autoresponders_array[$k] = $autoresponder_array;

View File

@ -26,7 +26,7 @@ class AutorespondersEdit extends \Panel\Vmail {
$subject = substr_replace($subject, "", -1);
$autoresponder_array[0]['subject'] = $subject;
$autoresponder_array[0]['body'] = base64_decode($autoresponder_array[0]['body']);
$autoresponder_array[0]['body'] = base64_decode(str_replace('\n', '', $autoresponder_array[0]['body']));
$autoresponders_array[0] = $autoresponder_array;