Skip to content
Snippets Groups Projects
Commit fca0045a authored by agilewarealok's avatar agilewarealok
Browse files

CIVICRM-1143: Fixed double protocol being added in link by CKEditor.

parent 18fe1924
No related branches found
No related tags found
No related merge requests found
......@@ -1346,6 +1346,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