Changes from tags/6.2/src/js/_enqueues/wp/embed.js at r59504 to tags/6.2.1/src/js/_enqueues/wp/embed.js at r59504
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/6.2.1/src/js/_enqueues/wp/embed.js
r59504 r59504 50 50 var iframes = document.querySelectorAll( 'iframe[data-secret="' + data.secret + '"]' ), 51 51 blockquotes = document.querySelectorAll( 'blockquote[data-secret="' + data.secret + '"]' ), 52 allowedProtocols = new RegExp( '^https?:$', 'i' ), 52 53 i, source, height, sourceURL, targetURL; 53 54 … … 84 85 sourceURL.href = source.getAttribute( 'src' ); 85 86 targetURL.href = data.value; 87 88 /* Only follow link if the protocol is in the allow list. */ 89 if ( ! allowedProtocols.test( targetURL.protocol ) ) { 90 continue; 91 } 86 92 87 93 /* Only continue if link hostname matches iframe's hostname. */
Note: See TracChangeset
for help on using the changeset viewer.