1
0
Fork 0
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:
gorhill 2017-12-06 06:29:21 -05:00
parent c983d47c8e
commit cadd9c751d
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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]');