code review for #319: ensure valid URL

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

@ -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