https-autolinking.diff

Florian Seirer, 2020-02-10 11:23

Download (847 Bytes)

View differences:

typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Plugins/autolinking.js
108 108
          a.appendChild(range.extractContents());
109 109
          a.href = a.innerHTML = a.innerHTML.replace(/<[^>]+>/g, '');
110 110
          href = a.getAttribute('href').replace(new RegExp(fillChar, 'g'), '');
111
          href = /^(?:https?:\/\/)/ig.test(href) ? href : 'http://' + href;
111
          href = /^(?:https?:\/\/)/ig.test(href) ? href : 'https://' + href;
112 112
          a.href = html(href);
113 113

  
114 114
          range.insertNode(a);