SoupTLD: fix a regression in soup_tld_is_public_suffix()
authorSergio Villar Senin <svillar@igalia.com>
Thu, 2 Aug 2012 14:50:54 +0000 (16:50 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 7 Aug 2012 10:11:15 +0000 (12:11 +0200)
commit82084a0c02c958a8d5bff4f847fc1507b10db9ed
tree5457a1b9588541afef70d1eeaf02c7026b68f404
parente1ce7249de8d7abc7a81faa706a69830272fe886
SoupTLD: fix a regression in soup_tld_is_public_suffix()

soup_tld_is_public_suffix() was not returning TRUE for well known TLDs as
".com" after cbae89f4. Also added some extra documentation to
soup_tld_get_base_domain() in order to make explicit that it returns NULL
for private URLs.

Reworked unit tests in order to allow them detect these regressions.

https://bugzilla.gnome.org/show_bug.cgi?id=681085
libsoup/soup-tld.c
tests/tld-test.c