Cast subject to string before passing to SDK

Created on 8 September 2023, about 1 year ago
Updated 12 September 2024, 2 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

Fixed

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.71.5 2024