Skip to content

Commit

Permalink
geosite: use stricter URL patterns to avoid scanning special sites
Browse files Browse the repository at this point in the history
"view-source:" or "about:" sites were scanned, too.
  • Loading branch information
marcows committed Dec 31, 2018
1 parent 5f1bbaa commit 16ecb5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/geosite.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
var scanners = [
{
func: scanGeosite_Wikipedia,
urlpattern: /https:\/\/[a-z]+\.wikipedia\.org\/wiki\//
urlpattern: /^https:\/\/[a-z]+\.wikipedia\.org\/wiki\//
},{
func: scanGeosite_GeoTag,
urlpattern: /.*/
urlpattern: /^(https?|file):\/\//
}
];

Expand Down

0 comments on commit 16ecb5a

Please sign in to comment.