Cast subject to string before passing to SDK

Created on 8 September 2023, 10 months ago
Updated 9 September 2023, 10 months ago

Problem/Motivation

If a markup object is passed for subject, the Assert for subject can blow up memory

  public static function string($value, $property, $message = NULL) {
    if (!is_string($value)) {

Happens with \SendGrid\Mail\Personalization::setSubject

\Drupal\sendgrid_integration\Plugin\Mail\SendGridMail::doMail should cast to string before calling

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024