Browse Source

code review for #319: ensure valid URL

pull/2/head
gorhill 7 years ago
parent
commit
cadd9c751d
No known key found for this signature in database GPG Key ID: 25E1490B761470C2
  1. 2
      src/js/contentscript.js

2
src/js/contentscript.js

@ -503,7 +503,7 @@ var nodeListsAddedHandler = function(nodeLists) {
if ( noscripts.length === 0 ) { return; }
var redirectTimer,
reMetaContent = /^\s*(\d+)\s*;\s*url=(['"]?)([^'"]+)\2/;
reMetaContent = /^\s*(\d+)\s*;\s*url=(['"]?)(https?:\/\/[^'"]+)\2/;
var autoRefresh = function(root) {
var meta = root.querySelector('meta[http-equiv="refresh"][content]');

Loading…
Cancel
Save