Browse code

phishcheck: include trailing '/' in path names per safebrowsing url canonicalization spec.

Steven Morgan authored on 2016/06/03 06:49:56
Showing 1 changed files
... ...
@@ -1401,7 +1401,7 @@ static int url_hash_match(const struct regex_matcher *rlist, const char *inurl,
1401 1401
 		while(k < COMPONENTS+2) {
1402 1402
 			p = strchr(path_begin + pp[k-1] + 1, '/');
1403 1403
 			if(p && p > path_begin) {
1404
-				pp[k++] = p - path_begin;
1404
+				pp[k++] = p - path_begin + 1;
1405 1405
 			} else
1406 1406
 				break;
1407 1407
 		}