Skip to content

Protocol relative URLs break RSS based email campaigns #29

Description

@clifgriffin

Many sites feed MailChimp or similar via the RSS feed.

Protocol relative URLs to images break many email clients, including Gmail and Outlook.

To fix this I changed the main filter to:

return preg_replace( "#=([\"'])(https?:)(//{$this->site_domain})?/([^/](?:(?!\\1).)+)\.(" . implode( '|', $this->extensions ) . ")(\?((?:(?!\\1).)+))?\\1#", '=$1$2//' . $this->cdn_domain . '/$4.$5$6$1', $content );

This could be an option, or it could just be the default until relative protocol URLs are more broadly supported.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions