Skip to content

Commit

Permalink
CRM-21768_NOFOLLOW_links_in_public_online_view_of_mailings
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard van Oosterhout authored and eileenmcnaughton committed Jul 25, 2018
1 parent c57fce7 commit 43e0759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Mailing/BAO/TrackableURL.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static function getTrackerURL($url, $mailing_id, $queue_id) {
$returnUrl = "{$urlCache[$mailing_id . $url]}&qid={$queue_id}";

if ($hrefExists) {
$returnUrl = "href='{$returnUrl}'";
$returnUrl = "href='{$returnUrl}' rel='nofollow'";
}

return $returnUrl;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/CRM/Mailing/BaseMailingSystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function testHtmlWithOpenAndUrlTracking() {
$this->assertRegExp(
";" .
// body_html
"<p>You can go to <a href=['\"].*extern/url\.php\?u=\d+&amp\\;qid=\d+['\"]>Google</a>" .
"<p>You can go to <a href=['\"].*extern/url\.php\?u=\d+&amp\\;qid=\d+['\"] rel='nofollow'>Google</a>" .
" or <a href=\"http.*civicrm/mailing/optout.*\">opt out</a>.</p>\n" .
// Default footer
"Sample Footer for HTML formatted content" .
Expand Down

0 comments on commit 43e0759

Please sign in to comment.