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.
If a tweet contains an email address, the twitter_pull_add_links function will convert the @domain part of the email address in to a link to a twitter user using pattern '#@(\w+)#ims'. This pattern should be modified to avoid this, maybe by matching a word boundary ahead of the @ sign?
Comment | File | Size | Author |
---|---|---|---|
#1 | twitter_pull_add_links_avoid_email_addresses.patch | 571 bytes | Altcom_Alan |
Comments
Comment #1
Altcom_Alan CreditAttribution: Altcom_Alan commentedI've just come across the same issue - I've modified line 210 to:
It matches @TWITTER_NAME either at the start of the string/line or after a space using a positive look behind assertion so it no longer matches parts of email addresses.
I've included a patch against 7.x-2.0-alpha2