Skip to content

Commit 8eaf91e

Browse files
authored
Removed CleanBinary method.
Logbox will receive a generic validation message without the config struct.
1 parent f45cb93 commit 8eaf91e

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

models/MailService.cfc

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ component accessors="true" singleton threadsafe {
269269
"Please check the basic mail fields of To, From, Subject and Body as they are empty. To: #arguments.mail.getTo()#, From: #arguments.mail.getFrom()#, Subject Len = #arguments.mail.getSubject().length()#, Body Len = #arguments.mail.getBody().length()#."
270270
]
271271
} )
272-
log.error( "Mail object does not validate.", cleanBinary( arguments.mail.getConfig() ) );
272+
log.error( "Mail object does not validate." );
273273
return arguments.mail;
274274
}
275275

@@ -451,19 +451,5 @@ component accessors="true" singleton threadsafe {
451451

452452
return this;
453453
}
454-
455-
/**
456-
* cleanBinary
457-
* Replaces binary content in the email params for safe logbox parsing
458-
*/
459-
private function cleanBinary( required struct mailConfig ) {
460-
if ( mailConfig.keyExists( "mailParams" ) && isArray( mailConfig.mailParams ) ) {
461-
mailConfig.mailParams.each( function( item ) {
462-
if ( isBinary( item.content ) ) {
463-
item.content = "[Binary Content]";
464-
}
465-
} );
466-
}
467-
}
468454

469455
}

0 commit comments

Comments
 (0)