Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#12 | 2953597-12.patch | 6.59 KB | jrockowitz |
| |||
#10 | 2953597-10.patch | 3.67 KB | jrockowitz |
#8 | 2953597-8.patch | 47.34 KB | jrockowitz |
|
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #3
gambryDepending by what the recommended solution in #2936032: Sites named with special characters cannot send mail is, we may need to fix the EmailWebformHandler, or webform_mail(), or both.
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedLooks like #2936032: Sites named with special characters cannot send mail is resolved in Drupal 8.6.4+.
@see New \Drupal\Component\Utility\Mail added
The below code needs to be reviewed
\Drupal\webform\Plugin\WebformHandler\EmailWebformHandler::sendMessage
webform_mail()
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@gambry We could create a temporary copy of Drupal\Component\Utility\Mail in the \Drupal\webform\Utility\WebformMail and use it for older versions of the Webform module.
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe attached patch provides a temporary port of the Drupal\Component\Utility\Mail class to the Webform module.
Comment #9
gambryHey @jrockowitz, #2936032: Sites named with special characters cannot send mail I was thinking about working on a patch to make use of the core Mail utility and add a constraint to the .info.yml/composer.json to drupal/core > 8.6.4. However this will stop sites on version < 8.6.4 to upgrade Webform, which is not ideal at all.
I'm afraid your suggestion of a copy of core Mail utility is currently the best option, and adding the constraint later on i.e. when 8.7.0 is out.
About your patch, is all the stuff not related to Mail required?
Comment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@gambry I accidentally created the patch on the feature branch for #3006765: Webform submission entity access is not enforced in view query.
The attached patch just contains the changes needed for this issue.
Comment #12
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #13
gambryAll good from what I can see!
Thanks!!
Comment #15
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented