Feature #90336 ยป https-autolinking.diff
typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Plugins/autolinking.js | ||
---|---|---|
a.appendChild(range.extractContents());
|
||
a.href = a.innerHTML = a.innerHTML.replace(/<[^>]+>/g, '');
|
||
href = a.getAttribute('href').replace(new RegExp(fillChar, 'g'), '');
|
||
href = /^(?:https?:\/\/)/ig.test(href) ? href : 'http://' + href;
|
||
href = /^(?:https?:\/\/)/ig.test(href) ? href : 'https://' + href;
|
||
a.href = html(href);
|
||
range.insertNode(a);
|