Closed GoogleCodeExporter closed 9 years ago
This code is responsible for this:
/* Endswith (.domain.com or .domain.com:80) */
if (ihost[0] == '.' && host.find(ihost) == host.size() - ihost.size())
return (iport == 0 || port == iport);
My example above:
ihost = .tmf-group.com
host = www.google.nl
The 'difference' in legth == 1 char shorter.
host.find(ihost) = -1 mean not found, but also matches the host.size -
ihost.size formula...
Original comment by dominiqu...@gmail.com
on 2 May 2011 at 8:16
Fixed in r805
Original comment by dominiqu...@gmail.com
on 2 May 2011 at 8:46
Original issue reported on code.google.com by
dominiqu...@gmail.com
on 2 May 2011 at 6:47