Skip to content
Snippets Groups Projects
Unverified Commit 850d8c7c authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #14128 from agileware/CIVICRM-1143

Fixed double protocol being added in link by CKEditor.
parents d5f70861 fca0045a
No related branches found
No related tags found
No related merge requests found
......@@ -1363,6 +1363,10 @@ ORDER BY civicrm_email.is_bulkmail DESC
$numSlices = count($embed_data);
$url = '';
for ($i = 0; $i < $numSlices; $i++) {
$embed_url_data = parse_url($embed_data[$i]);
if (!empty($embed_url_data['scheme'])) {
$token_a['embed_parts'][$i] = preg_replace("/href=\"(https*:\/\/)/", "href=\"", $token_a['embed_parts'][$i]);
}
$url .= "{$token_a['embed_parts'][$i]}{$embed_data[$i]}";
}
if (isset($token_a['embed_parts'][$numSlices])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment