mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-02 18:34:52 +12:00
code review for #319: ensure valid URL
This commit is contained in:
parent
c983d47c8e
commit
cadd9c751d
|
@ -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…
Reference in a new issue