strip newlines from mysql base64 encoded data before decoding
This commit is contained in:
parent
ced57b2773
commit
48830851b8
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user