Index: src/plugin/PluginClass.cpp |
=================================================================== |
--- a/src/plugin/PluginClass.cpp |
+++ b/src/plugin/PluginClass.cpp |
@@ -1333,11 +1333,11 @@ |
CString urlString = GetTab()->GetDocumentUrl(); |
if (client->IsWhitelistedUrl(std::wstring(urlString))) |
{ |
- settings->RemoveWhiteListedDomain(ExtractDomain(urlString)); |
+ settings->RemoveWhiteListedDomain(client->GetHostFromUrl(urlString.GetString()).c_str()); |
} |
else |
{ |
- settings->AddWhiteListedDomain(ExtractDomain(urlString)); |
+ settings->AddWhiteListedDomain(client->GetHostFromUrl(urlString.GetString()).c_str()); |
} |
GetBrowser()->Refresh(); |
} |
@@ -1396,7 +1396,7 @@ |
{ |
ctext = dictionary->Lookup("menu", "menu-disable-on-site"); |
// Is domain in white list? |
- ReplaceString(ctext, L"?1?", ExtractDomain(url).GetString()); |
+ ReplaceString(ctext, L"?1?", client->GetHostFromUrl(url.GetString())); |
if (client->IsWhitelistedUrl(std::wstring(GetTab()->GetDocumentUrl()))) |
{ |
fmii.fState = MFS_CHECKED | MFS_ENABLED; |