google / safebrowsing

Safe Browsing API Go Client
Apache License 2.0
470 stars 129 forks source link

Fixes issue querying multiple overlapping urls #89

Closed colonelxc closed 5 years ago

colonelxc commented 5 years ago

If more than one url had a suffix/prefix expression that was the same (example foo.com/a and foo.com/b both would also test foo.com), only the last one would be recorded. If it matched a blacklist, only that last one would show the match.

Note: This did not affect any cached items. So if the offending full hash had already been cached, all urls covered by that expression would be correctly shown as matches.

Fixes #87

colonelxc commented 5 years ago

Yes, you are correct. Updated the commit message