Fix 205161 - remove "www" from history entries.

This commit is contained in:
blakeross%telocity.com 2003-07-06 02:18:27 +00:00
parent 2f70def121
commit 3acfbdcd18

View File

@ -758,6 +758,10 @@ nsGlobalHistory::AddNewPageToDatabase(const char *aURL,
if (uri)
uri->GetHost(hostname);
// Strip www.
if (Substring(hostname, 0, 4).Equals(NS_LITERAL_CSTRING("www.")))
hostname.Cut(0, 4);
SetRowValue(row, kToken_HostnameColumn, hostname.get());
*aResult = row;